summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2011-11-27 03:58:43 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2011-11-27 03:58:43 +0000
commit402e3c26e12830d5bf3822ec12fd6c18af14d1dd (patch)
tree95f0c2f26f83db39d7bd45139af8b782a2a25bce /src
parent894ab9f949190ab912d75d4b88a8e5ccc7213def (diff)
downloadcraftbukkit-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.java2
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 */