Fix selling of enchanted "normal" items

This commit is contained in:
Acrobot 2013-07-22 21:39:22 +02:00
parent 438e3a6ed0
commit b570e38be3

View File

@ -141,7 +141,7 @@ public class InventoryUtil {
int neededToAdd = Math.min(maxStackSize - currentAmount, amountLeft); int neededToAdd = Math.min(maxStackSize - currentAmount, amountLeft);
duplicate.setAmount(currentAmount + neededToAdd); duplicate.setAmount(currentAmount + neededToAdd);
duplicate.addEnchantments(item.getEnchantments()); duplicate.addUnsafeEnchantments(item.getEnchantments());
amountLeft -= neededToAdd; amountLeft -= neededToAdd;