From 8a29829d1acd80952686145ef8dd363e4c84cc2c Mon Sep 17 00:00:00 2001 From: feildmaster Date: Wed, 4 Dec 2013 14:21:17 -0600 Subject: [PATCH] Correctly register Furnace Recipies. Fixes BUKKIT-5044 We should also use items, not blocks. :) --- .../org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java index 39772fec74..49b2cbaf7a 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java @@ -18,9 +18,10 @@ public class CraftFurnaceRecipe extends FurnaceRecipe implements CraftRecipe { return new CraftFurnaceRecipe(recipe.getResult(), recipe.getInput()); } + @Override public void addToCraftingManager() { ItemStack result = this.getResult(); ItemStack input = this.getInput(); - RecipesFurnace.getInstance().registerRecipe(CraftMagicNumbers.getBlock(input.getTypeId()), CraftItemStack.asNMSCopy(result), 0.1f); + RecipesFurnace.getInstance().a(CraftMagicNumbers.getItem(input.getTypeId()), CraftItemStack.asNMSCopy(result), 0.1f); } }