Fixes a bug with item adding

This commit is contained in:
Acrobot 2012-12-31 02:28:48 +01:00
parent 23b6e59fa0
commit dc0a61b1fd

View File

@ -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);
} }