aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
authorMaxim <maxim235@gmx.de>2023-04-12 20:18:16 +0200
committerGitHub <noreply@github.com>2023-04-12 20:18:16 +0200
commit6cefcfb2b152fa66124b6c0f2443290f1f289ac9 (patch)
treeb3fa2b191aee8ee7f2fd35dc60e03958581ebb97 /src/main/java/gregtech/common
parent52a1f8b0d028b93b3e3418e43d1c14d382ecfe96 (diff)
downloadGT5-Unofficial-6cefcfb2b152fa66124b6c0f2443290f1f289ac9.tar.gz
GT5-Unofficial-6cefcfb2b152fa66124b6c0f2443290f1f289ac9.tar.bz2
GT5-Unofficial-6cefcfb2b152fa66124b6c0f2443290f1f289ac9.zip
Fixed recipe lock not setting difference correctly (#1879)
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java4
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java
index ee7821ddb8..de2f0ad24b 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeChemicalReactor.java
@@ -179,7 +179,7 @@ public class GT_MetaTileEntity_LargeChemicalReactor extends
// We're locked to a single recipe, but haven't built the recipe checker yet.
// Build the checker on next successful recipe.
tSingleRecipeCheckBuilder = GT_Single_Recipe_Check.builder(this)
- .setBefore();
+ .setBefore(inputs, fluids);
}
tRecipe = GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.findRecipe(
@@ -195,7 +195,7 @@ public class GT_MetaTileEntity_LargeChemicalReactor extends
}
if (mLockedToSingleRecipe) {
- mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter()
+ mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter(inputs, fluids)
.setRecipe(tRecipe)
.build();
}
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java
index 00b3a1ff10..6a1964df3e 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PyrolyseOven.java
@@ -176,7 +176,7 @@ public class GT_MetaTileEntity_PyrolyseOven
// We're locked to a single recipe, but haven't built the recipe checker yet.
// Build the checker on next successful recipe.
tSingleRecipeCheckBuilder = GT_Single_Recipe_Check.builder(this)
- .setBefore();
+ .setBefore(tInputs, tFluids);
}
tRecipe = GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes
@@ -185,7 +185,7 @@ public class GT_MetaTileEntity_PyrolyseOven
if (tRecipe == null || !tRecipe.isRecipeInputEqual(true, tFluids, tInputs)) return false;
if (mLockedToSingleRecipe) {
- mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter()
+ mSingleRecipeCheck = tSingleRecipeCheckBuilder.setAfter(tInputs, tFluids)
.setRecipe(tRecipe)
.build();
}