diff options
author | korneel vandamme <krampus.sack.never@gmail.com> | 2019-12-01 14:10:58 +0100 |
---|---|---|
committer | korneel vandamme <krampus.sack.never@gmail.com> | 2019-12-01 14:10:58 +0100 |
commit | 30cb48fea9bd712a7b20a4a06943e83198096cbf (patch) | |
tree | fb8b2edaa3bc86e87940b91b47087b4f50f96f62 /src/Java/gtPlusPlus/xmod | |
parent | 9c71ae70fc2276b4c56baa26217be2d23dde63b6 (diff) | |
download | GT5-Unofficial-30cb48fea9bd712a7b20a4a06943e83198096cbf.tar.gz GT5-Unofficial-30cb48fea9bd712a7b20a4a06943e83198096cbf.tar.bz2 GT5-Unofficial-30cb48fea9bd712a7b20a4a06943e83198096cbf.zip |
adv vacuumfreezer working the same as advEBF
Diffstat (limited to 'src/Java/gtPlusPlus/xmod')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java index 064dc8372b..82de41f186 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java @@ -184,6 +184,8 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends GregtechMeta return false; } + private volatile int mGraceTimer = 2; + @Override public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { /*if (this.getBaseMetaTileEntity().isActive()) { @@ -192,5 +194,19 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends GregtechMeta } } */ super.onPostTick(aBaseMetaTileEntity, aTick); + + if (this.mStartUpCheck < 0) { + if (this.mMaxProgresstime > 0 && this.mProgresstime != 0 || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) { + if (aTick % 10 == 0 || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) { + if (!this.depleteInput(FluidUtils.getFluidStack("cryotheum", 10))) { + if (mGraceTimer-- == 0) { + this.causeMaintenanceIssue(); + this.stopMachine(); + mGraceTimer = 2; + } + } + } + } + } } }
\ No newline at end of file |