mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fix copy paste error making removeAllRecipes for metallurgic infuser not work. Closes #5507
This commit is contained in:
9 files changed
+14
-27
No files matched your search
+1
-2
@@ -32,8 +32,7 @@ public class ChemicalInfuser {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient gasOutput, @Optional IIngredient leftGasInput,
|
||||
@Optional IIngredient rightGasInput) {
|
||||
public static void removeRecipe(IIngredient gasOutput, @Optional IIngredient leftGasInput, @Optional IIngredient rightGasInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, gasOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.CHEMICAL_INFUSER, new IngredientWrapper(gasOutput),
|
||||
new IngredientWrapper(leftGasInput, rightGasInput)));
|
||||
|
||||
+1
-2
@@ -45,8 +45,7 @@ public class ChemicalInjection {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput,
|
||||
@Optional IIngredient gasInput) {
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient gasInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.CHEMICAL_INJECTION_CHAMBER, new IngredientWrapper(itemOutput),
|
||||
new IngredientWrapper(itemInput, gasInput)));
|
||||
|
||||
@@ -60,8 +60,7 @@ public class Combiner {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput,
|
||||
@Optional IIngredient extraInput) {
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient extraInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.COMBINER, new IngredientWrapper(itemOutput),
|
||||
new IngredientWrapper(itemInput, extraInput)));
|
||||
|
||||
@@ -57,8 +57,7 @@ public class Compressor {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput,
|
||||
@Optional IIngredient gasInput) {
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient gasInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.OSMIUM_COMPRESSOR, new IngredientWrapper(itemOutput),
|
||||
new IngredientWrapper(itemInput, gasInput)));
|
||||
|
||||
@@ -32,8 +32,7 @@ public class Infuser {
|
||||
public static final String NAME = Mekanism.MOD_NAME + " Metallurgic Infuser";
|
||||
|
||||
@ZenMethod
|
||||
public static void addRecipe(String infuseType, int infuseAmount, IIngredient ingredientInput,
|
||||
IItemStack itemOutput) {
|
||||
public static void addRecipe(String infuseType, int infuseAmount, IIngredient ingredientInput, IItemStack itemOutput) {
|
||||
if (infuseType == null || infuseType.isEmpty()) {
|
||||
CraftTweakerAPI.logError(String.format("Required parameters missing for %s Recipe.", NAME));
|
||||
return;
|
||||
@@ -50,8 +49,7 @@ public class Infuser {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput,
|
||||
@Optional String infuseType) {
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional String infuseType) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.METALLURGIC_INFUSER, new IngredientWrapper(itemOutput),
|
||||
new IngredientWrapper(itemInput, infuseType)));
|
||||
@@ -60,6 +58,6 @@ public class Infuser {
|
||||
|
||||
@ZenMethod
|
||||
public static void removeAllRecipes() {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveAllMekanismRecipe<>(NAME, Recipe.CHEMICAL_CRYSTALLIZER));
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveAllMekanismRecipe<>(NAME, Recipe.METALLURGIC_INFUSER));
|
||||
}
|
||||
}
|
||||
@@ -57,8 +57,7 @@ public class Purification {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput,
|
||||
@Optional IIngredient gasInput) {
|
||||
public static void removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient gasInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.PURIFICATION_CHAMBER, new IngredientWrapper(itemOutput),
|
||||
new IngredientWrapper(itemInput, gasInput)));
|
||||
|
||||
@@ -34,8 +34,7 @@ public class Reaction {
|
||||
public static final String NAME = Mekanism.MOD_NAME + " Reaction";
|
||||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IIngredient ingredientInput, ILiquidStack liquidInput, IGasStack gasInput,
|
||||
IItemStack itemOutput, IGasStack gasOutput, double energy, int duration) {
|
||||
public static void addRecipe(IIngredient ingredientInput, ILiquidStack liquidInput, IGasStack gasInput, IItemStack itemOutput, IGasStack gasOutput, double energy, int duration) {
|
||||
if (IngredientHelper.checkNotNull(NAME, ingredientInput, liquidInput, gasInput, itemOutput, gasOutput)) {
|
||||
FluidStack fluidInput = IngredientHelper.toFluid(liquidInput);
|
||||
GasStack gas = GasHelper.toGas(gasInput);
|
||||
@@ -49,8 +48,7 @@ public class Reaction {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemOutput, IIngredient gasOutput, @Optional IIngredient itemInput,
|
||||
@Optional IIngredient liquidInput, @Optional IIngredient gasInput) {
|
||||
public static void removeRecipe(IIngredient itemOutput, IIngredient gasOutput, @Optional IIngredient itemInput, @Optional IIngredient liquidInput, @Optional IIngredient gasInput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemOutput, gasOutput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.PRESSURIZED_REACTION_CHAMBER, new IngredientWrapper(itemOutput, gasOutput),
|
||||
new IngredientWrapper(itemInput, liquidInput, gasInput)));
|
||||
|
||||
@@ -29,8 +29,7 @@ public class Sawmill {
|
||||
public static final String NAME = Mekanism.MOD_NAME + " Sawmill";
|
||||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IIngredient ingredientInput, IItemStack itemOutput,
|
||||
@Optional IItemStack optionalItemOutput, @Optional double optionalChance) {
|
||||
public static void addRecipe(IIngredient ingredientInput, IItemStack itemOutput, @Optional IItemStack optionalItemOutput, @Optional double optionalChance) {
|
||||
if (IngredientHelper.checkNotNull(NAME, ingredientInput, itemOutput)) {
|
||||
ChanceOutput output = optionalItemOutput == null ? new ChanceOutput(CraftTweakerMC.getItemStack(itemOutput)) : new ChanceOutput(CraftTweakerMC.getItemStack(itemOutput),
|
||||
CraftTweakerMC.getItemStack(optionalItemOutput), optionalChance);
|
||||
@@ -43,8 +42,7 @@ public class Sawmill {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient itemInput, @Optional IIngredient itemOutput,
|
||||
@Optional IIngredient optionalItemOutput) {
|
||||
public static void removeRecipe(IIngredient itemInput, @Optional IIngredient itemOutput, @Optional IIngredient optionalItemOutput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, itemInput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.PRECISION_SAWMILL, new IngredientWrapper(itemOutput, optionalItemOutput),
|
||||
new IngredientWrapper(itemInput)));
|
||||
|
||||
@@ -25,8 +25,7 @@ public class Separator {
|
||||
public static final String NAME = Mekanism.MOD_NAME + " Separator";
|
||||
|
||||
@ZenMethod
|
||||
public static void addRecipe(ILiquidStack liquidInput, double energy, IGasStack leftGasOutput,
|
||||
IGasStack rightGasOutput) {
|
||||
public static void addRecipe(ILiquidStack liquidInput, double energy, IGasStack leftGasOutput, IGasStack rightGasOutput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, liquidInput, leftGasOutput, rightGasOutput)) {
|
||||
CrafttweakerIntegration.LATE_ADDITIONS.add(new AddMekanismRecipe<>(NAME, Recipe.ELECTROLYTIC_SEPARATOR,
|
||||
new SeparatorRecipe(IngredientHelper.toFluid(liquidInput), energy, GasHelper.toGas(leftGasOutput), GasHelper.toGas(rightGasOutput))));
|
||||
@@ -34,8 +33,7 @@ public class Separator {
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IIngredient liquidInput, @Optional IIngredient leftGasOutput,
|
||||
@Optional IIngredient rightGasOutput) {
|
||||
public static void removeRecipe(IIngredient liquidInput, @Optional IIngredient leftGasOutput, @Optional IIngredient rightGasOutput) {
|
||||
if (IngredientHelper.checkNotNull(NAME, liquidInput)) {
|
||||
CrafttweakerIntegration.LATE_REMOVALS.add(new RemoveMekanismRecipe<>(NAME, Recipe.ELECTROLYTIC_SEPARATOR, new IngredientWrapper(leftGasOutput, rightGasOutput),
|
||||
new IngredientWrapper(liquidInput)));
|
||||
|
||||
Reference in new issue
Block a user