only add OreGas recipes to crystallizer if its in the Resource enum
@@ -461,7 +461,12 @@ public class Mekanism
OreGas oreGas = (OreGas)gas;
RecipeHandler.addChemicalWasherRecipe(new GasStack(oreGas, 1), new GasStack(oreGas.getCleanGas(), 1));
- RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200), new ItemStack(MekanismItems.Crystal, 1, Resource.getFromName(oreGas.getName()).ordinal()));
+ //do the crystallizer only if it's one of ours!
+ Resource gasResource = Resource.getFromName(oreGas.getName());
+ if(gasResource != null)
+ {
+ RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200), new ItemStack(MekanismItems.Crystal, 1, gasResource.ordinal()));
+ }
}
}
