aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
}