Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
fix mega DT (#396)
Browse files Browse the repository at this point in the history
* fix mega dt structure

* fix copypaste error

* fix copypaste error again
  • Loading branch information
Glease authored Mar 3, 2024
1 parent a028efc commit 1268c0c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,17 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
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++;
Expand Down

0 comments on commit 1268c0c

Please sign in to comment.