aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlueWeabo <76872108+BlueWeabo@users.noreply.github.com>2022-10-01 13:16:33 +0300
committerGitHub <noreply@github.com>2022-10-01 12:16:33 +0200
commitf151eee7b946e25eb11a3a97bb974a993fd4fcf2 (patch)
tree63734b5a6a5c08b23c0ad8191292cbcae9afcadb /src
parentd1b6588d63183cbdaff1fb9bc314944355388f61 (diff)
downloadGT5-Unofficial-f151eee7b946e25eb11a3a97bb974a993fd4fcf2.tar.gz
GT5-Unofficial-f151eee7b946e25eb11a3a97bb974a993fd4fcf2.tar.bz2
GT5-Unofficial-f151eee7b946e25eb11a3a97bb974a993fd4fcf2.zip
Add Compat for bartworks and Cell-less PA change (#200)
* make sure that recipes are added elsewhere * actual fix to the dusts Former-commit-id: 0870a2e1c0106a90f7d5337f2d90c3162b74085b
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java42
1 files changed, 38 insertions, 4 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java
index de1a0d1b34..324e7905e8 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/werkstoff_loaders/recipe/DustLoader.java
@@ -167,8 +167,8 @@ public class DustLoader implements IWerkstoffRunnable {
}
ItemStack input = werkstoff.get(dust);
input.stackSize = werkstoff.getContents().getKey();
- if (werkstoff.getStats().isElektrolysis())
- GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.add(new BWRecipes.DynamicGTRecipe(
+ if (werkstoff.getStats().isElektrolysis()) {
+ GT_Recipe tRecipe = new BWRecipes.DynamicGTRecipe(
true,
new ItemStack[] {input, cells > 0 ? Materials.Empty.getCells(cells) : null},
stOutputs.toArray(new ItemStack[0]),
@@ -181,8 +181,11 @@ public class DustLoader implements IWerkstoffRunnable {
Math.abs(werkstoff.getStats().getProtons()
/ werkstoff.getContents().getValue().size())),
Math.min(4, werkstoff.getContents().getValue().size()) * 30,
- 0));
- if (werkstoff.getStats().isCentrifuge())
+ 0);
+ GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.add(tRecipe);
+ GT_Recipe.GT_Recipe_Map.sMultiblockElectrolyzerRecipes.add(tRecipe);
+ }
+ if (werkstoff.getStats().isCentrifuge()) {
GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.add(new BWRecipes.DynamicGTRecipe(
true,
new ItemStack[] {input, cells > 0 ? Materials.Empty.getCells(cells) : null},
@@ -197,6 +200,22 @@ public class DustLoader implements IWerkstoffRunnable {
/ werkstoff.getContents().getValue().size())),
Math.min(4, werkstoff.getContents().getValue().size()) * 5,
0));
+ GT_Recipe tRecipe = new GT_Recipe(
+ false,
+ stOutputs.toArray(new ItemStack[0]),
+ new ItemStack[] {input},
+ null,
+ null,
+ new FluidStack[] {flOutputs.size() > 0 ? flOutputs.get(0) : null},
+ null,
+ (int) Math.max(
+ 1L,
+ Math.abs(werkstoff.getStats().getProtons()
+ / werkstoff.getContents().getValue().size())),
+ Math.min(4, werkstoff.getContents().getValue().size()) * 30,
+ 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockCentrifugeRecipes.add(tRecipe);
+ }
if (werkstoff.getGenerationFeatures().hasChemicalRecipes()) {
if (cells > 0) stOutputs.add(Materials.Empty.getCells(cells));
GT_Recipe.GT_Recipe_Map.sChemicalRecipes.add(new BWRecipes.DynamicGTRecipe(
@@ -247,6 +266,21 @@ public class DustLoader implements IWerkstoffRunnable {
/ werkstoff.getContents().getValue().size())),
Math.min(4, werkstoff.getContents().getValue().size()) * 5,
0));
+ GT_Recipe tRecipe = new GT_Recipe(
+ false,
+ stOutputs.toArray(new ItemStack[0]),
+ new ItemStack[] {input},
+ null,
+ null,
+ new FluidStack[] {flOutputs.size() > 0 ? flOutputs.get(0) : null},
+ null,
+ (int) Math.max(
+ 1L,
+ Math.abs(werkstoff.getStats().getProtons()
+ / werkstoff.getContents().getValue().size())),
+ Math.min(4, werkstoff.getContents().getValue().size()) * 30,
+ 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.add(tRecipe);
}
}