Fixed bug that prevented stacked items from being returned if they weren't sellable

This commit is contained in:
Teriuihi 2023-09-25 00:15:36 +02:00
parent 46edaf59fb
commit 9a8a38f4a4

View File

@ -61,7 +61,7 @@ public class SellWindow extends GUI {
continue;
}
int points = getPoints(content, namespacedKey) * content.getAmount();
if (points == -1) {
if (points < 0) {
itemsToMoveBack.add(content);
} else {
pointsEarned += points;