mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-25 00:01:21 +01:00
Make sure to set the item if removed manually
This commit is contained in:
parent
40427e427c
commit
d28e44f377
@ -263,6 +263,7 @@ public class InventoryUtil {
|
||||
int neededToRemove = Math.min(currentItem.getAmount(), amountLeft);
|
||||
|
||||
currentItem.setAmount(currentItem.getAmount() - neededToRemove);
|
||||
inventory.setItem(currentSlot, currentItem);
|
||||
|
||||
amountLeft -= neededToRemove;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user