Fixes a bug with item adding

This commit is contained in:
Acrobot 2012-12-31 02:28:48 +01:00
parent 23b6e59fa0
commit dc0a61b1fd
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public class InventoryUtil {
duplicate.setAmount(currentAmount + neededToAdd);
duplicate.addEnchantments(item.getEnchantments());
amountLeft -= duplicate.getAmount();
amountLeft -= neededToAdd;
inventory.setItem(currentSlot, duplicate);
}