Ensure points are properly assigned if a user somehow gets duplicate fish

This commit is contained in:
Teriuihi 2023-09-24 04:49:42 +02:00
parent e77485ea68
commit a904e0cfa5

View File

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