Fix AlloyFurnace ItemStack null reference, closes #901

This commit is contained in:
Ourten 2017-01-15 23:45:48 +01:00
parent 09d4a98c97
commit 64020b01e0

View file

@ -187,7 +187,7 @@ implements IWrenchable, IInventoryProvider, IContainerProvider {
*/ */
public void smeltItem() { public void smeltItem() {
if (this.canSmelt()) { if (this.canSmelt()) {
ItemStack itemstack = null; ItemStack itemstack = ItemStack.EMPTY;
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelteRecipe)) { for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelteRecipe)) {
if (this.hasAllInputs(recipeType)) { if (this.hasAllInputs(recipeType)) {
itemstack = recipeType.getOutput(0); itemstack = recipeType.getOutput(0);