From 73c6cebf351d6ef5d7a299a5571365fc86bb5cd4 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Sun, 3 Mar 2024 18:15:56 +0800 Subject: fix mega DT (#396) * fix mega dt structure * fix copypaste error * fix copypaste error again Former-commit-id: 0aa8a95b61676ede1433ce359aecf00c2aec1e45 --- .../tileentities/multis/mega/GT_TileEntity_MegaDistillTower.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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++; -- cgit