Skip to content

Commit

Permalink
Return max int in DummyCleanrooms.
Browse files Browse the repository at this point in the history
Don't check for an existing cleanroom in the cleaning hatch.
  • Loading branch information
Zorbatron committed Jan 25, 2025
1 parent 5d0ff46 commit 4dea151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public void adjustCleanAmount(int amount) {}
// doesn't replace the set cleanroom in multiblocks.
@Override
public int getPriority() {
return 1;
return Integer.MAX_VALUE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public MetaTileEntity createMetaTileEntity(IGregTechTileEntity tileEntity) {
@Override
public void addToMultiBlock(MultiblockControllerBase controllerBase) {
super.addToMultiBlock(controllerBase);
if (controllerBase instanceof ICleanroomReceiver cleanroomReceiver &&
cleanroomReceiver.getCleanroom() == null) {
if (controllerBase instanceof ICleanroomReceiver cleanroomReceiver) {
cleanroomReceiver.setCleanroom(DUMMY_CLEANROOM);
}
}
Expand Down

0 comments on commit 4dea151

Please sign in to comment.