mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +01:00
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.setAmount(currentAmount + neededToAdd);
|
||||||
duplicate.addEnchantments(item.getEnchantments());
|
duplicate.addEnchantments(item.getEnchantments());
|
||||||
|
|
||||||
amountLeft -= duplicate.getAmount();
|
amountLeft -= neededToAdd;
|
||||||
|
|
||||||
inventory.setItem(currentSlot, duplicate);
|
inventory.setItem(currentSlot, duplicate);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user