aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorBlueWeabo <76872108+BlueWeabo@users.noreply.github.com>2022-10-01 13:10:18 +0300
committerGitHub <noreply@github.com>2022-10-01 12:10:18 +0200
commit209e475490584e5bdc0abadedc97edef465f33a2 (patch)
tree4363baf5d59272eadcce13f9f40076a422b5b73e /src/main/java
parent473b00a1e508d061a22a9752aace9a1d756f516b (diff)
downloadGT5-Unofficial-209e475490584e5bdc0abadedc97edef465f33a2.tar.gz
GT5-Unofficial-209e475490584e5bdc0abadedc97edef465f33a2.tar.bz2
GT5-Unofficial-209e475490584e5bdc0abadedc97edef465f33a2.zip
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>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java22
1 files changed, 12 insertions, 10 deletions
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;
}