mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-24 02:56:02 +01:00
Allow enchantments over normal levels
This commit is contained in:
parent
960b1617c6
commit
20f9599c66
@ -131,7 +131,7 @@ public class InventoryUtil {
|
|||||||
|
|
||||||
if (MaterialUtil.isEmpty(currentItem)) {
|
if (MaterialUtil.isEmpty(currentItem)) {
|
||||||
duplicate.setAmount(Math.min(amountLeft, maxStackSize));
|
duplicate.setAmount(Math.min(amountLeft, maxStackSize));
|
||||||
duplicate.addEnchantments(item.getEnchantments());
|
duplicate.addUnsafeEnchantments(item.getEnchantments());
|
||||||
|
|
||||||
amountLeft -= duplicate.getAmount();
|
amountLeft -= duplicate.getAmount();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user