Fix selling of enchanted "normal" items
This commit is contained in:
parent
438e3a6ed0
commit
b570e38be3
|
@ -141,7 +141,7 @@ public class InventoryUtil {
|
|||
int neededToAdd = Math.min(maxStackSize - currentAmount, amountLeft);
|
||||
|
||||
duplicate.setAmount(currentAmount + neededToAdd);
|
||||
duplicate.addEnchantments(item.getEnchantments());
|
||||
duplicate.addUnsafeEnchantments(item.getEnchantments());
|
||||
|
||||
amountLeft -= neededToAdd;
|
||||
|
||||
|
|
Loading…
Reference in New Issue