mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Fixed me being a stupid person
This commit is contained in:
parent
1e70fe6086
commit
dbb0c73fd5
1 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue