Fixed me being a stupid person

This commit is contained in:
Ellpeck 2015-12-13 22:35:53 +01:00
parent 1e70fe6086
commit dbb0c73fd5

View file

@ -27,8 +27,10 @@ public class CrusherRecipeRegistry{
public static ArrayList<SearchCase> searchCases = new ArrayList<SearchCase>(); public static ArrayList<SearchCase> searchCases = new ArrayList<SearchCase>();
public static void addRecipe(String input, String outputOne, int outputOneAmount, String outputTwo, int outputTwoAmount, int outputTwoChance){ public static void addRecipe(String input, String outputOne, int outputOneAmount, String outputTwo, int outputTwoAmount, int outputTwoChance){
if(!OreDictionary.getOres(input).isEmpty() && !OreDictionary.getOres(outputOne).isEmpty() && (outputTwo == null || outputTwo.isEmpty() || !OreDictionary.getOres(outputTwo).isEmpty())){
recipes.add(new CrusherRecipe(input, outputOne, outputOneAmount, outputTwo, outputTwoAmount, outputTwoChance)); recipes.add(new CrusherRecipe(input, outputOne, outputOneAmount, outputTwo, outputTwoAmount, outputTwoChance));
} }
}
public static void registerFinally(){ public static void registerFinally(){
ArrayList<String> oresNoResult = new ArrayList<String>(); ArrayList<String> oresNoResult = new ArrayList<String>();
@ -89,8 +91,10 @@ public class CrusherRecipeRegistry{
} }
public static void addRecipe(ItemStack input, String outputOne, int outputOneAmount){ public static void addRecipe(ItemStack input, String outputOne, int outputOneAmount){
if(!OreDictionary.getOres(outputOne).isEmpty()){
recipes.add(new CrusherRecipe(input, outputOne, outputOneAmount)); recipes.add(new CrusherRecipe(input, outputOne, outputOneAmount));
} }
}
public static void addRecipe(ItemStack input, ItemStack outputOne, ItemStack outputTwo, int outputTwoChance){ public static void addRecipe(ItemStack input, ItemStack outputOne, ItemStack outputTwo, int outputTwoChance){
recipes.add(new CrusherRecipe(input, outputOne, outputTwo, outputTwoChance)); recipes.add(new CrusherRecipe(input, outputOne, outputTwo, outputTwoChance));