diff options
author | Martin Robertz <dream-master@gmx.net> | 2022-01-11 15:52:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 15:52:17 +0100 |
commit | 0b89d806d6c1effdde4bf2f5e54e48b8ba6ba99f (patch) | |
tree | 852c4847b75c2e887ca15f749a9c2217d9d0e0ec /src | |
parent | 50db93d77aff4c678fffd8604375497ca27845eb (diff) | |
parent | 825ecd104a24064e9c53580ff95c4822009a2f47 (diff) | |
download | GT5-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.java | 8 |
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++; } |