aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech
diff options
context:
space:
mode:
authorchochem <40274384+chochem@users.noreply.github.com>2023-06-03 14:36:14 +0100
committerGitHub <noreply@github.com>2023-06-03 15:36:14 +0200
commiteb63ebd0c08582fcff7d595fc8936a106301041b (patch)
tree2761a6d0b4144351aadf0cc96c5767bf2edcf5e7 /src/main/java/gregtech
parentae5b5f3e1dc6f960f94b0e352ceb08d3822e2e9e (diff)
downloadGT5-Unofficial-eb63ebd0c08582fcff7d595fc8936a106301041b.tar.gz
GT5-Unofficial-eb63ebd0c08582fcff7d595fc8936a106301041b.tar.bz2
GT5-Unofficial-eb63ebd0c08582fcff7d595fc8936a106301041b.zip
Chemical reactor recipe map fix (#2046)
* minor stuff * disable some optimizations
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r--src/main/java/gregtech/api/util/GT_Recipe.java9
-rw-r--r--src/main/java/gregtech/api/util/GT_RecipeConstants.java9
2 files changed, 13 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Recipe.java b/src/main/java/gregtech/api/util/GT_Recipe.java
index 2b7f0ec5b9..6f0c7c403e 100644
--- a/src/main/java/gregtech/api/util/GT_Recipe.java
+++ b/src/main/java/gregtech/api/util/GT_Recipe.java
@@ -2328,9 +2328,11 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
.setSlotOverlay(false, true, GT_UITextures.OVERLAY_SLOT_VIAL_1)
.setSlotOverlay(true, true, GT_UITextures.OVERLAY_SLOT_VIAL_2)
.setRecipeConfigFile("chemicalreactor", FIRST_ITEM_OR_FLUID_OUTPUT)
- .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT);
+ .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE, ProgressBar.Direction.RIGHT)
+ .setDisableOptimize(true);
/**
- * using {@code .addTo(sChemicalRecipes)} will cause the recipe to be added to multiblock recipe map ONLY!
+ * using {@code .addTo(sMultiblockChemicalRecipes)} will cause the recipe to be added to multiblock recipe map
+ * ONLY!
* use {@link GT_RecipeConstants#UniversalChemical} to add to both.
*/
public static final GT_Recipe_Map sMultiblockChemicalRecipes = //
@@ -2461,7 +2463,8 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
true,
true).setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_CIRCUIT)
.setRecipeConfigFile("assembling", FIRST_ITEM_OUTPUT)
- .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT);
+ .setProgressBar(GT_UITextures.PROGRESSBAR_ASSEMBLE, ProgressBar.Direction.RIGHT)
+ .setDisableOptimize(true);
public static final GT_Recipe_Map sCircuitAssemblerRecipes = new GT_Recipe_Map_Assembler(
new HashSet<>(605),
"gt.recipe.circuitassembler",
diff --git a/src/main/java/gregtech/api/util/GT_RecipeConstants.java b/src/main/java/gregtech/api/util/GT_RecipeConstants.java
index 2b97bc4f71..3fe386ba24 100644
--- a/src/main/java/gregtech/api/util/GT_RecipeConstants.java
+++ b/src/main/java/gregtech/api/util/GT_RecipeConstants.java
@@ -2,7 +2,12 @@ package gregtech.api.util;
import static gregtech.api.util.GT_RecipeMapUtil.convertCellToFluid;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Optional;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
@@ -126,7 +131,7 @@ public class GT_RecipeConstants {
builder.copy()
.addTo(GT_Recipe_Map.sChemicalRecipes),
convertCellToFluid(builder, false)
- // LCR does not need cleanroom, for now.
+ // LCR does not need cleanroom.
.metadata(CLEANROOM, false)
.addTo(GT_Recipe_Map.sMultiblockChemicalRecipes));
});