From 093bfa0dc02bc330b1ed79704832152917c3d6f8 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 26 Jul 2023 09:17:14 -0400 Subject: 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 --- .../implementations/GT_MetaTileEntity_MultiBlockBase.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/gregtech/api/metatileentity/implementations') 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; -- cgit