From 2a560a3b2480e1826e95d666f6cb44f781cfd366 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 27 Nov 2011 03:58:43 +0000 Subject: [PATCH] Clone item enchantments unchecked By: Nathan Adams --- .../java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index caf9007a34..e94bf891f9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java @@ -26,7 +26,7 @@ public class CraftItemStack extends ItemStack { public CraftItemStack(ItemStack item) { this(item.getTypeId(), item.getAmount(), item.getDurability()); - addEnchantments(item.getEnchantments()); + addUnsafeEnchantments(item.getEnchantments()); } /* 'Overwritten' constructors from ItemStack, yay for Java sucking */