From c6273810a1dce645cc8eb36ae3f21c2cebb03ef4 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Fri, 2 Mar 2012 13:23:27 -0600 Subject: [PATCH] [Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602 --- .../bukkit/craftbukkit/inventory/CraftInventoryCrafting.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java index 6e3cabe08a..cdb56ffc83 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java @@ -127,7 +127,7 @@ public class CraftInventoryCrafting extends CraftInventory implements CraftingIn if (item == null || item.getTypeId() <= 0) { contents[0] = null; } else { - contents[0] = new net.minecraft.server.ItemStack( item.getTypeId(), item.getAmount(), item.getDurability()); + contents[0] = CraftItemStack.createNMSItemStack(item); } }