diff options
author | Martin Robertz <dream-master@gmx.net> | 2023-08-17 20:50:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 20:50:06 +0200 |
commit | a1a22dc35c8123ffaa953e64a2935c67b8394760 (patch) | |
tree | 2a71392395744a8000cc617056cb1e3cc16fdfc0 /src/main/java/common | |
parent | c53663a85f114d419c325edbe88107b97a62f4b5 (diff) | |
parent | fb17fc903c21a7ab1e920346721affd00e7a4170 (diff) | |
download | GT5-Unofficial-a1a22dc35c8123ffaa953e64a2935c67b8394760.tar.gz GT5-Unofficial-a1a22dc35c8123ffaa953e64a2935c67b8394760.tar.bz2 GT5-Unofficial-a1a22dc35c8123ffaa953e64a2935c67b8394760.zip |
Merge pull request #74 from Lyfts/tfft-fix
Allow max tier TFFT to complete with energy hatch
Diffstat (limited to 'src/main/java/common')
-rw-r--r-- | src/main/java/common/tileentities/GTMTE_TFFT.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_TFFT.java b/src/main/java/common/tileentities/GTMTE_TFFT.java index fa69df2026..a32f461053 100644 --- a/src/main/java/common/tileentities/GTMTE_TFFT.java +++ b/src/main/java/common/tileentities/GTMTE_TFFT.java @@ -319,7 +319,7 @@ public class GTMTE_TFFT extends GT_MetaTileEntity_EnhancedMultiBlockBase<GTMTE_T .addInfo("Use an Integrated Circuit in the GUI slot to limit which fluid is output.") .addInfo("The index of a stored fluid can be obtained through the Tricorder.").addSeparator() .beginVariableStructureBlock(5, 5, 5, 15, 5, 5, false).addController("Top Center") - .addCasingInfo("T.F.F.T Casing", MIN_CASING_AMOUNT) + .addCasingInfoMin("T.F.F.T Casing", MIN_CASING_AMOUNT, false) .addOtherStructurePart("Storage Field Blocks (Tier I-X)", "Inner 3xhx3 solid pillar") .addStructureInfo("Energy hatch is not required when running cost is 0") .addOtherStructurePart("EV+ Tier Glass/Warded Glass/Reinforced Glass", "Outer 5xhx5 glass shell") @@ -400,7 +400,11 @@ public class GTMTE_TFFT extends GT_MetaTileEntity_EnhancedMultiBlockBase<GTMTE_T if (tfftHatch != null) tfftHatch.bind(this); - return !mEnergyHatches.isEmpty() ^ this.runningCost == 0; + if (this.runningCost == 0) { + return true; + } + + return !mEnergyHatches.isEmpty(); } return false; } |