hook any crystal macerator recipes from ic2 to the crusher
@@ -109,26 +109,22 @@ public final class MekanismHooks
for(MachineRecipe<IRecipeInput, Collection<ItemStack>> entry : Recipes.macerator.getRecipes())
{
if(!entry.getInput().getInputs().isEmpty())
+ {
+ if (!RecipeHandler.Recipe.CRUSHER.containsRecipe(entry.getInput().getInputs().get(0)))
{
List<String> names = MekanismUtils.getOreDictName(entry.getInput().getInputs().get(0));
for(String name : names)
{
- boolean did = false;
-
- if(name.startsWith("ingot"))
+ if(name.startsWith("ingot") || name.startsWith("crystal"))
{
RecipeHandler.addCrusherRecipe(entry.getInput().getInputs().get(0), entry.getOutput().iterator().next());
- did = true;
- }
-
- if(did)
- {
break;
}
}
}
}
+ }
try {
Recipes.macerator.addRecipe(Recipes.inputFactory.forOreDict("oreOsmium"), null, false, new ItemStack(MekanismItems.Dust, 2, Resource.OSMIUM.ordinal()));
