summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2012-03-02 13:23:27 -0600
committerEvilSeph <evilseph@gmail.com>2012-03-02 21:10:39 -0500
commitc6273810a1dce645cc8eb36ae3f21c2cebb03ef4 (patch)
treeb278bb42eead4a0586ecf211c735ffcc96f65d8a /src
parent2d5263bfe50b0666831e61adc4ac5a95ba81819f (diff)
downloadcraftbukkit-c6273810a1dce645cc8eb36ae3f21c2cebb03ef4.tar
craftbukkit-c6273810a1dce645cc8eb36ae3f21c2cebb03ef4.tar.gz
craftbukkit-c6273810a1dce645cc8eb36ae3f21c2cebb03ef4.tar.lz
craftbukkit-c6273810a1dce645cc8eb36ae3f21c2cebb03ef4.tar.xz
craftbukkit-c6273810a1dce645cc8eb36ae3f21c2cebb03ef4.zip
[Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
index 6e3cabe0..cdb56ffc 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);
}
}