Skip to content

Commit

Permalink
Make degasser not form without control hatch (#3750)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAPenguin0 authored Jan 5, 2025
1 parent 11a3d9b commit fa06129
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
this.controlHatch = null;
if (!checkPiece(STRUCTURE_PIECE_MAIN, STRUCTURE_X_OFFSET, STRUCTURE_Y_OFFSET, STRUCTURE_Z_OFFSET)) return false;
if (casingCount < MIN_CASING) return false;
// Do not form without a valid control hatch
if (this.controlHatch == null || !this.controlHatch.isValid()) return false;
return super.checkMachine(aBaseMetaTileEntity, aStack);
}

Expand Down

0 comments on commit fa06129

Please sign in to comment.