mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Correctly register Furnace Recipies. Fixes BUKKIT-5044
We should also use items, not blocks. :) By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
647164a75d
commit
76c6e0cb14
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue