Added exceptions to the Recipe handlers. Don't crash, but log to the console what went wrong.

This commit is contained in:
Gunther De Wachter
2017-07-13 22:18:59 +02:00
parent d67d93b343
commit c91b432e09
4 changed files with 76 additions and 4 deletions
@@ -800,7 +800,9 @@ public class RecipeHandler implements IRecipeHandler
return net.minecraft.item.crafting.Ingredient.fromStacks( itemStack );
}
return null;
AELog.warn( "Looking for ingredient with name '" + partName + "' ended up with a null item!" );
return net.minecraft.item.crafting.Ingredient.EMPTY;
}
}