aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorYang Xizhi <60341015+GlodBlock@users.noreply.github.com>2022-01-11 19:45:30 +0800
committerGitHub <noreply@github.com>2022-01-11 19:45:30 +0800
commit825ecd104a24064e9c53580ff95c4822009a2f47 (patch)
tree852c4847b75c2e887ca15f749a9c2217d9d0e0ec /src/main/java
parent50db93d77aff4c678fffd8604375497ca27845eb (diff)
downloadGT5-Unofficial-825ecd104a24064e9c53580ff95c4822009a2f47.tar.gz
GT5-Unofficial-825ecd104a24064e9c53580ff95c4822009a2f47.tar.bz2
GT5-Unofficial-825ecd104a24064e9c53580ff95c4822009a2f47.zip
fix DT structure check
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java
index 8f1191c594..a8fbb74cc9 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java
@@ -259,10 +259,16 @@ public class GT_MetaTileEntity_DistillationTower extends GT_MetaTileEntity_Enhan
return false;
// check each layer
- while (mHeight < 12 && checkPiece(STRUCTURE_PIECE_LAYER, 1, mHeight, 0) && !mTopLayerFound) {
+ while (mHeight < 12) {
+ if (!checkPiece(STRUCTURE_PIECE_LAYER, 1, mHeight, 0)) {
+ return false;
+ }
if (mOutputHatchesByLayer.get(mHeight - 1).isEmpty())
// layer without output hatch
return false;
+ if (mTopLayerFound) {
+ break;
+ }
// not top
mHeight++;
}