From 209e475490584e5bdc0abadedc97edef465f33a2 Mon Sep 17 00:00:00 2001 From: BlueWeabo <76872108+BlueWeabo@users.noreply.github.com> Date: Sat, 1 Oct 2022 13:10:18 +0300 Subject: Quick for Cell-Less PAs (#383) * make electrolyzer recipes work in PA * spotlessApply (#384) Co-authored-by: BlueWeabo <76872108+BlueWeabo@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../xmod/gregtech/loaders/RecipeGen_Ore.java | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java index e210ae00ef..4e163119a0 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java @@ -4,7 +4,6 @@ import gregtech.api.GregTech_API; import gregtech.api.enums.GT_Values; import gregtech.api.enums.Materials; import gregtech.api.util.GT_ModHandler; -import gregtech.api.util.GT_Recipe; import gtPlusPlus.api.interfaces.RunnableWithInfo; import gtPlusPlus.api.objects.Logger; import gtPlusPlus.api.objects.data.AutoMap; @@ -625,17 +624,20 @@ public class RecipeGen_Ore extends RecipeGen_Base { Logger.MATERIALS("[Electrolyzer] Fail 2."); return false; } - GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.addRecipe( - true, - new ItemStack[] {aInput1, aInput2}, - new ItemStack[] {aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6}, - null, + GT_Values.RA.addElectrolyzerRecipe( + aInput1, + aInput2, + aFluidInput, + aFluidOutput, + aOutput1, + aOutput2, + aOutput3, + aOutput4, + aOutput5, + aOutput6, aChances, - new FluidStack[] {aFluidInput}, - new FluidStack[] {aFluidOutput}, aDuration, - aEUt, - 0); + aEUt); Logger.MATERIALS("[Electrolyzer] Recipe added."); return true; } -- cgit