aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2022-01-11 15:52:17 +0100
committerGitHub <noreply@github.com>2022-01-11 15:52:17 +0100
commit0b89d806d6c1effdde4bf2f5e54e48b8ba6ba99f (patch)
tree852c4847b75c2e887ca15f749a9c2217d9d0e0ec /src
parent50db93d77aff4c678fffd8604375497ca27845eb (diff)
parent825ecd104a24064e9c53580ff95c4822009a2f47 (diff)
downloadGT5-Unofficial-0b89d806d6c1effdde4bf2f5e54e48b8ba6ba99f.tar.gz
GT5-Unofficial-0b89d806d6c1effdde4bf2f5e54e48b8ba6ba99f.tar.bz2
GT5-Unofficial-0b89d806d6c1effdde4bf2f5e54e48b8ba6ba99f.zip
Merge pull request #865 from GTNewHorizons/fix-6
fix DT structure check
Diffstat (limited to 'src')
-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++;
}