From d6c6b18ba9daa9fcc4b63c0e62e05a8ca7be83b2 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 25 Feb 2012 16:08:49 -0500 Subject: [PATCH] Fix for shaped recipes stripping enchantments from the result. Fixes BUKKIT-602 --- src/main/java/net/minecraft/server/ShapedRecipes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ShapedRecipes.java b/src/main/java/net/minecraft/server/ShapedRecipes.java index eccfd47e5e..603465acfb 100644 --- a/src/main/java/net/minecraft/server/ShapedRecipes.java +++ b/src/main/java/net/minecraft/server/ShapedRecipes.java @@ -135,7 +135,7 @@ public class ShapedRecipes implements CraftingRecipe { } public ItemStack b(InventoryCrafting inventorycrafting) { - return new ItemStack(this.e.id, this.e.count, this.e.getData()); + return new ItemStack(this.e.id, this.e.count, this.e.getData(), this.e.getEnchantments()); // CraftBukkit - copy enchantments } public int a() {