mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +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);
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user