Fixed bug that prevented stacked items from being returned if they weren't sellable
This commit is contained in:
parent
46edaf59fb
commit
9a8a38f4a4
|
|
@ -61,7 +61,7 @@ public class SellWindow extends GUI {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int points = getPoints(content, namespacedKey) * content.getAmount();
|
int points = getPoints(content, namespacedKey) * content.getAmount();
|
||||||
if (points == -1) {
|
if (points < 0) {
|
||||||
itemsToMoveBack.add(content);
|
itemsToMoveBack.add(content);
|
||||||
} else {
|
} else {
|
||||||
pointsEarned += points;
|
pointsEarned += points;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user