mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-24 17:17:49 +01:00
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
Block a user