Check for material existence in Casting-IMC

This commit is contained in:
Bernhard Bonigl committed 2015-03-18 23:09:44 +01:00
1 parent c89e0237c5
commit 774239bc48
1 file changed
+6
@@ -171,6 +171,12 @@ public final class IMCHandler {
continue;
}
if(TConstructRegistry.getMaterial(matID) == null)
{
FMLLog.bigWarning("Casting IMC: Unknown Material ID " + matID);
continue;
}
// we add the toolpart to all smeltery recipies that use iron and create a toolpart
List<CastingRecipe> newRecipies = new LinkedList<CastingRecipe>();
for(CastingRecipe recipe : TConstructRegistry.getTableCasting().getCastingRecipes())