Skip to content

Allow Stocking Buses/Hatches to respect Paint when selecting inputs.#4881

Open
DilithiumThoride wants to merge 1 commit into
1.20.1from
dt/painted-stocking
Open

Allow Stocking Buses/Hatches to respect Paint when selecting inputs.#4881
DilithiumThoride wants to merge 1 commit into
1.20.1from
dt/painted-stocking

Conversation

@DilithiumThoride
Copy link
Copy Markdown
Contributor

What

When Painting was implemented on Input Buses/Hatches as a means of input (and output) group isolation, it was implicitly applied to ME hatches as they inherit Paintable. However, the code for what items are polled by Stocking Input Buses/Hatches was not updated to account for the existence of Paint groups, meaning that regardless of Paint a single item could only exist in a single Stocking Input anywhere in a machine. (Distinct Buses did still function for them however, indicating that group separation would still be appropriate.)

(Fix was requested by TTFTCUTS who got very annoyed at Stocking Hatches not doing this.)

Implementation Details

Modified the function that checks whether a Stocking Input should deduplicate an input, to also check for if the other hatch has a different paint group.

AI Usage

  • [ X ] No AI driven tools were used for this pull request.

Outcome

Painted Stocking Inputs can now contain inputs that are present in other Painted/Distinct Stocking Inputs, allowing better use with paint groups.

How Was This Tested

Okay this one is actually not explicitly tested yet, I figured out how to fix it because I know how the Paint code works but not how to make an in-game test for it.
"It compiles and automated tests pass".

@DilithiumThoride DilithiumThoride requested a review from a team as a code owner May 28, 2026 04:57
@DilithiumThoride DilithiumThoride added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels May 28, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant