3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

Correctly register Furnace Recipies. Fixes BUKKIT-5044

We should also use items, not blocks. :)
Dieser Commit ist enthalten in:
feildmaster 2013-12-04 14:21:17 -06:00
Ursprung b880a2d24c
Commit 8a29829d1a

Datei anzeigen

@ -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);
}
}