Skip to content

Commit

Permalink
Check for material existence in Casting-IMC
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Mar 18, 2015
1 parent c89e023 commit 774239b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/tconstruct/util/IMCHandler.java
Expand Up @@ -171,6 +171,12 @@ else if(type.equals("addPartCastingMaterial"))
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())
Expand Down

0 comments on commit 774239b

Please sign in to comment.