diff options
author | feildmaster <admin@feildmaster.com> | 2013-12-04 14:21:17 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2013-12-05 14:37:14 -0600 |
commit | 8a29829d1acd80952686145ef8dd363e4c84cc2c (patch) | |
tree | 804e559b3439dc1e7463a38d38a2e9c2a354c7a9 /src | |
parent | b880a2d24ca514d781f3af95f0f26a58a2abbe48 (diff) | |
download | craftbukkit-8a29829d1acd80952686145ef8dd363e4c84cc2c.tar craftbukkit-8a29829d1acd80952686145ef8dd363e4c84cc2c.tar.gz craftbukkit-8a29829d1acd80952686145ef8dd363e4c84cc2c.tar.lz craftbukkit-8a29829d1acd80952686145ef8dd363e4c84cc2c.tar.xz craftbukkit-8a29829d1acd80952686145ef8dd363e4c84cc2c.zip |
Correctly register Furnace Recipies. Fixes BUKKIT-5044
We should also use items, not blocks. :)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftFurnaceRecipe.java index 39772fec..49b2cbaf 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); } } |