diff --git a/src/main/java/tconstruct/util/IMCHandler.java b/src/main/java/tconstruct/util/IMCHandler.java index 0158233a..1c34b49c 100644 --- a/src/main/java/tconstruct/util/IMCHandler.java +++ b/src/main/java/tconstruct/util/IMCHandler.java @@ -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 newRecipies = new LinkedList(); for(CastingRecipe recipe : TConstructRegistry.getTableCasting().getCastingRecipes())