From 402e3c26e12830d5bf3822ec12fd6c18af14d1dd Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 27 Nov 2011 03:58:43 +0000 Subject: [PATCH] Clone item enchantments unchecked --- .../java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index caf9007a34..e94bf891f9 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/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 */