diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 03:58:12 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 03:58:12 +0000 |
commit | 349ddd27b7e10aeaf8f3148321286283c6de3b81 (patch) | |
tree | 89dd75e582db70c6c6b586ffb246f60482d7e83c | |
parent | 693dfdbe8fa16a5cb4836ec87765e5e08e825199 (diff) | |
download | bukkit-349ddd27b7e10aeaf8f3148321286283c6de3b81.tar bukkit-349ddd27b7e10aeaf8f3148321286283c6de3b81.tar.gz bukkit-349ddd27b7e10aeaf8f3148321286283c6de3b81.tar.lz bukkit-349ddd27b7e10aeaf8f3148321286283c6de3b81.tar.xz bukkit-349ddd27b7e10aeaf8f3148321286283c6de3b81.zip |
Fixed issue adding mass enchantments to items
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index f7f41b39..3a1fbace 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java @@ -258,7 +258,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable { * @param enchantments Enchantments to add */ public void addEnchantments(Map<Enchantment, Integer> enchantments) { - for (Map.Entry<Enchantment, Integer> entry : getEnchantments().entrySet()) { + for (Map.Entry<Enchantment, Integer> entry : enchantments.entrySet()) { addEnchantment(entry.getKey(), entry.getValue()); } } @@ -290,7 +290,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable { * @param enchantments Enchantments to add */ public void addUnsafeEnchantments(Map<Enchantment, Integer> enchantments) { - for (Map.Entry<Enchantment, Integer> entry : getEnchantments().entrySet()) { + for (Map.Entry<Enchantment, Integer> entry : enchantments.entrySet()) { addUnsafeEnchantment(entry.getKey(), entry.getValue()); } } |