aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/machines
diff options
context:
space:
mode:
authorrepo-alt <wvk17@yandex.ru>2022-11-27 00:53:33 +0300
committerGitHub <noreply@github.com>2022-11-26 22:53:33 +0100
commite5c7e6eca4f5d35c7cdab66dc641a8de521757b4 (patch)
treec6ab55fc6ea39a4a13f67bae2d748db6128f8c59 /src/main/java/gregtech/common/tileentities/machines
parent9295ba16ff1847ca296873484bf7ff258ff89e06 (diff)
downloadGT5-Unofficial-e5c7e6eca4f5d35c7cdab66dc641a8de521757b4.tar.gz
GT5-Unofficial-e5c7e6eca4f5d35c7cdab66dc641a8de521757b4.tar.bz2
GT5-Unofficial-e5c7e6eca4f5d35c7cdab66dc641a8de521757b4.zip
fix locked recipe processing for the stocking input bus (#1526)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
index 62d5fefc0d..42640c832a 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
@@ -244,10 +244,12 @@ public class GT_MetaTileEntity_ProcessingArray
}
public boolean processRecipe(ItemStack[] tInputs, FluidStack[] tFluids, GT_Recipe.GT_Recipe_Map map) {
- if (tInputs.length <= 0 && tFluids.length <= 0) return false;
+ if (tInputs.length <= 0 && tFluids.length <= 0)
+ return false;
GT_Recipe tRecipe = map.findRecipe(
getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
- if (tRecipe == null) return false;
+ if (tRecipe == null)
+ return false;
if (GT_Mod.gregtechproxy.mLowGravProcessing
&& tRecipe.mSpecialValue == -100
&& !isValidForLowGravity(tRecipe, getBaseMetaTileEntity().getWorld().provider.dimensionId))
@@ -258,7 +260,7 @@ public class GT_MetaTileEntity_ProcessingArray
// 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_Processing_Array.processingArrayBuilder(this)
- .setBefore();
+ .setBefore(tInputs, tFluids);
}
boolean recipeLocked = false;
@@ -271,7 +273,7 @@ public class GT_MetaTileEntity_ProcessingArray
} else if (mLockedToSingleRecipe && !recipeLocked) {
// We want to lock to a single run of the recipe.
mSingleRecipeCheck = tSingleRecipeCheckBuilder
- .setAfter()
+ .setAfter(tInputs, tFluids)
.setRecipe(tRecipe)
.setRecipeAmperage(map.mAmperage)
.build();