Stopped the Crusher from adding recipes that don't actually have an input

This commit is contained in:
Ellpeck 2015-10-17 05:52:45 +02:00
parent 6f51795a01
commit 75917782d2

View file

@ -41,7 +41,7 @@ public class CrusherRecipeRegistry{
String output = theCase.resultPreString+ore.substring(theCase.theCase.length());
if(!hasRecipe(ore)){
if(!OreDictionary.getOres(output, false).isEmpty()){
if(!OreDictionary.getOres(output, false).isEmpty() && !OreDictionary.getOres(ore, false).isEmpty()){
addRecipe(ore, output, theCase.resultAmount);
recipesAdded++;
}