aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2024-03-03 18:15:56 +0800
committerGitHub <noreply@github.com>2024-03-03 11:15:56 +0100
commit73c6cebf351d6ef5d7a299a5571365fc86bb5cd4 (patch)
treef749a00915a5eaee62480beaae70aa051a0a0cfa /src
parentb22e8f0900445bd515df50401bf9ed02740838e4 (diff)
downloadGT5-Unofficial-73c6cebf351d6ef5d7a299a5571365fc86bb5cd4.tar.gz
GT5-Unofficial-73c6cebf351d6ef5d7a299a5571365fc86bb5cd4.tar.bz2
GT5-Unofficial-73c6cebf351d6ef5d7a299a5571365fc86bb5cd4.zip
fix mega DT (#396)
* fix mega dt structure * fix copypaste error * fix copypaste error again Former-commit-id: 0aa8a95b61676ede1433ce359aecf00c2aec1e45
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java
index 6ae286900d..478b27cbf1 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java
@@ -290,12 +290,17 @@ public class GT_TileEntity_MegaDistillTower extends GT_TileEntity_MegaMultiBlock
if (!this.checkPiece(STRUCTURE_PIECE_BASE, 7, 0, 0)) return false;
// check each layer
- while (this.mHeight < 12 && this.checkPiece(STRUCTURE_PIECE_LAYER, 7, this.mHeight * 5, 0)
- && !this.mTopLayerFound) {
+ while (this.mHeight < 12) {
+ if (!checkPiece(STRUCTURE_PIECE_LAYER, 7, mHeight * 5, 0)) {
+ return false;
+ }
if (this.mOutputHatchesByLayer.size() < this.mHeight
|| this.mOutputHatchesByLayer.get(this.mHeight - 1).isEmpty())
// layer without output hatch
return false;
+ if (mTopLayerFound) {
+ break;
+ }
this.mTopState = -1;
// not top
this.mHeight++;