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 structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease committed Feb 29, 2024
1 parent 852c569 commit 046a4e4
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, 1, mHeight, 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 046a4e4

Please sign in to comment.