diff options
author | Harry <harryyunull@gmail.com> | 2023-07-26 09:17:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 15:17:14 +0200 |
commit | 093bfa0dc02bc330b1ed79704832152917c3d6f8 (patch) | |
tree | a53004e54ae3b026a8bdaa00b006189ab25e5426 /src/main/java/gregtech/api/metatileentity | |
parent | 005fd2fbf72950f019cc2a20c37bb97c2c68b428 (diff) | |
download | GT5-Unofficial-093bfa0dc02bc330b1ed79704832152917c3d6f8.tar.gz GT5-Unofficial-093bfa0dc02bc330b1ed79704832152917c3d6f8.tar.bz2 GT5-Unofficial-093bfa0dc02bc330b1ed79704832152917c3d6f8.zip |
Texture & Bug fixes for Crafting Input Hatches (#2182)
* crafting input textures
* texture v2
* texture v3
* texture
* various fixes
* lazy pattern update
* fix dtpf
* fix removing pattern
* spotless
* fix lag in recipe checks
* fix
* increase tier so they look pretty
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java index c7a12f1766..d427e99d4e 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java @@ -489,11 +489,12 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity private boolean shouldCheckRecipeThisTick(long aTick) { // do a recipe check if any crafting input hatch just got pushed in items + boolean shouldCheck = false; + // check all of them (i.e. do not return early) to reset the state of all of them. for (IDualInputHatch craftingInputMe : mDualInputHatches) { - if (craftingInputMe.justUpdated()) { - return true; - } + shouldCheck |= craftingInputMe.justUpdated(); } + if (shouldCheck) return true; // Perform more frequent recipe change after the machine just shuts down. long timeElapsed = aTick - mLastWorkingTick; |