From c9937a01c84e931f0d595770526e90548a71eb49 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Mar 2012 12:49:56 -0600 Subject: [PATCH] [Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602 By: Wesley Wolfe --- paper-api/src/main/java/org/bukkit/inventory/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java index b814fbec78..41db22186b 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java @@ -64,7 +64,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable { if (stack.data != null) { this.data = stack.data.clone(); } - enchantments.putAll(stack.enchantments); + this.addUnsafeEnchantments(stack.getEnchantments()); } /**