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

Commit

Permalink
Merge remote-tracking branch 'origin/fix/mdt' into dev
Browse files Browse the repository at this point in the history
Former-commit-id: c43cab6cf121bbd017f486999e4e080f4ff33b08
  • Loading branch information
Dream-Master committed Mar 1, 2024
2 parents 255826f + 0723cab commit 453fefe
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 * 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 453fefe

Please sign in to comment.