aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator/blocks/tileEntity/base
diff options
context:
space:
mode:
authorMaxim <maxim235@gmx.de>2022-08-19 13:56:36 +0200
committerGitHub <noreply@github.com>2022-08-19 13:56:36 +0200
commit702368e0cb3f2bb85c4ec75ba8fd9fb85e2c7e83 (patch)
treee94ed4e9c6ab57ed483b21c7214de2aa077ba3a5 /src/main/java/goodgenerator/blocks/tileEntity/base
parent4db22cb35e86177385bdd47a06709b33b6cb7ec6 (diff)
downloadGT5-Unofficial-702368e0cb3f2bb85c4ec75ba8fd9fb85e2c7e83.tar.gz
GT5-Unofficial-702368e0cb3f2bb85c4ec75ba8fd9fb85e2c7e83.tar.bz2
GT5-Unofficial-702368e0cb3f2bb85c4ec75ba8fd9fb85e2c7e83.zip
Use the same check as in multiblock base to check the structure (#71)
* Use the same check as in multiblock base to check the structure * Applied spotless
Diffstat (limited to 'src/main/java/goodgenerator/blocks/tileEntity/base')
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
index 303fc3947d..3fb388822d 100644
--- a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
+++ b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
@@ -218,7 +218,14 @@ public abstract class LargeFusionComputer extends GT_MetaTileEntity_TooltipMulti
this.mEUStore = (int) aBaseMetaTileEntity.getStoredEU();
checkRecipe(mInventory[1]);
}
- if (--mUpdate == 0 || --mStartUpCheck == 0) {
+ if (mUpdated) {
+ mUpdate = 50;
+ mUpdated = false;
+ }
+ if (--mUpdate == 0
+ || --mStartUpCheck == 0
+ || cyclicUpdate_EM()
+ || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) {
checkStructure(true, aBaseMetaTileEntity);
}
if (mStartUpCheck < 0) {