Skip to content

Conversation

@Zorbatron
Copy link
Member

@Zorbatron Zorbatron commented Jan 25, 2025

What

In my addon, I have a maintenance hatch that is like the cleaning maintenance hatch but it does sterile cleaning. The cleanroom set by the hatch gets overriden by a cleanroom multiblock if the multi is built inside one.

Implementation Details

An ICleanroomProvider can specify a priority which and in RecipeMapMultiblockControllers, the internal cleanroom provider will only be set if the new one has a higher priority than the existing one. This priority defaults to 0. Cleaning hatches override than and return max int, so it won't be replaced by a cleanroom multiblocks provider (which doesn't override getPriority.

Additional Information

Zorbatron/ZBGT#133

…ovider in RecipeMapMultiblockControllers if the priority is higher than the existing one.
@Zorbatron Zorbatron requested a review from a team as a code owner January 25, 2025 02:08
@Zorbatron Zorbatron added the type: refactor Suggestion to refactor a section of code label Jan 25, 2025
Don't check for an existing cleanroom in the cleaning hatch.
@ALongStringOfNumbers ALongStringOfNumbers added type: bug Something isn't working and removed type: refactor Suggestion to refactor a section of code labels Jan 27, 2025
@ALongStringOfNumbers ALongStringOfNumbers merged commit b9e8b49 into master Feb 1, 2025
3 checks passed
@ALongStringOfNumbers ALongStringOfNumbers deleted the zb/cleanroom-priorities branch February 1, 2025 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants