Fixes a bug with item adding
This commit is contained in:
parent
23b6e59fa0
commit
dc0a61b1fd
|
@ -143,7 +143,7 @@ public class InventoryUtil {
|
|||
duplicate.setAmount(currentAmount + neededToAdd);
|
||||
duplicate.addEnchantments(item.getEnchantments());
|
||||
|
||||
amountLeft -= duplicate.getAmount();
|
||||
amountLeft -= neededToAdd;
|
||||
|
||||
inventory.setItem(currentSlot, duplicate);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue