Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiblock with Sterilization Hatch not working in Cleanroom #133

Open
ChromaPIE opened this issue Jan 16, 2025 · 2 comments
Open

Multiblock with Sterilization Hatch not working in Cleanroom #133

ChromaPIE opened this issue Jan 16, 2025 · 2 comments
Labels
Base CEu issue An issue with GT:CEu

Comments

@ChromaPIE
Copy link
Contributor

  • In a formed and working cleanroom, build a multiblock that runs recipes requiring an sterilized environment, in my case, it's the megaLCR
  • Have an Auto-sterilization maintenance hatch in its structure
  • It can't run the recipe

If you break the cleanroom's structure, like breaking its core block, then break and place the megaLCR's core block again, it'll start running the recipe. While the recipe's running, place the cleanroom, the recipe will stop right away.

Expected behavior will be the structure being able to function as intended ignoring external environment completely.

@Zorbatron
Copy link
Owner

Due to how the cleanroom code works, a multiblock will have its cleanroom set to the type of the cleaning hatch only when it forms. But if it's inside a cleanroom multiblock, the cleanroom will override what the hatch set.
Where the sterile hatch sets the cleanroom type:


Where the normal cleaning hatch sets the type: https://github.com/GregTechCEu/GregTech/blob/9fe140febe8747bbe2f06dfd570421331ec06f4b/src/main/java/gregtech/common/metatileentities/multi/multiblockpart/MetaTileEntityCleaningMaintenanceHatch.java#L57
Where the cleanroom sets the receiver's cleanroom type (which gets run every structure check): https://github.com/GregTechCEu/GregTech/blob/9fe140febe8747bbe2f06dfd570421331ec06f4b/src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityCleanroom.java#L461
I'll look into fixing this in GT, but since a new release of GT isn't likely to come out in the foreseeable future, just don't build your sterile hatch multis in a cleanroom multiblock for now.

@Zorbatron
Copy link
Owner

Here's the relevant CEu issue PR GregTechCEu/GregTech#2706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Base CEu issue An issue with GT:CEu
Projects
None yet
Development

No branches or pull requests

2 participants