diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 03:58:43 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 03:58:43 +0000 |
commit | 402e3c26e12830d5bf3822ec12fd6c18af14d1dd (patch) | |
tree | 95f0c2f26f83db39d7bd45139af8b782a2a25bce /src | |
parent | 894ab9f949190ab912d75d4b88a8e5ccc7213def (diff) | |
download | craftbukkit-402e3c26e12830d5bf3822ec12fd6c18af14d1dd.tar craftbukkit-402e3c26e12830d5bf3822ec12fd6c18af14d1dd.tar.gz craftbukkit-402e3c26e12830d5bf3822ec12fd6c18af14d1dd.tar.lz craftbukkit-402e3c26e12830d5bf3822ec12fd6c18af14d1dd.tar.xz craftbukkit-402e3c26e12830d5bf3822ec12fd6c18af14d1dd.zip |
Clone item enchantments unchecked
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index caf9007a..e94bf891 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 */ |