diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-10-13 23:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 23:27:55 +0200 |
commit | b205a5f77d60261b8dfe8a1284dac23b1c3cce2a (patch) | |
tree | eac9a9f69c2158fd7f0672b3a56b21c40e905c26 /src/main/java/gregtech | |
parent | fee22064099b0fe33d6cf50b50965bb2c632c3a7 (diff) | |
parent | 6625a5010ea36196af7ca0a389f36eca17f712d2 (diff) | |
download | GT5-Unofficial-b205a5f77d60261b8dfe8a1284dac23b1c3cce2a.tar.gz GT5-Unofficial-b205a5f77d60261b8dfe8a1284dac23b1c3cce2a.tar.bz2 GT5-Unofficial-b205a5f77d60261b8dfe8a1284dac23b1c3cce2a.zip |
Merge pull request #684 from GTNewHorizons/patch-dt-casing
Fix distillation tower structure bugs
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java | 3 |
1 files changed, 2 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 e7634c6b62..fe68b13152 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 @@ -225,6 +225,7 @@ public class GT_MetaTileEntity_DistillationTower extends GT_MetaTileEntity_Enhan mOutputHatchesByLayer.forEach(List::clear); mHeight = 1; mTopLayerFound = false; + mCasing = 0; // check base if (!checkPiece(STRUCTURE_PIECE_BASE, 1, 0, 0)) @@ -275,7 +276,7 @@ public class GT_MetaTileEntity_DistillationTower extends GT_MetaTileEntity_Enhan @Override public void construct(ItemStack stackSize, boolean hintsOnly) { buildPiece(STRUCTURE_PIECE_BASE, stackSize, hintsOnly, 1, 0, 0); - int tTotalHeight = Math.max(12, stackSize.stackSize + 2); // min 2 output layer, so at least 1 + 2 height + int tTotalHeight = Math.min(12, stackSize.stackSize + 2); // min 2 output layer, so at least 1 + 2 height for (int i = 1; i < tTotalHeight - 1; i++) { buildPiece(STRUCTURE_PIECE_LAYER_HINT, stackSize, hintsOnly, 1, i, 0); } |