Skip to content

Set filter on inventory for pattern buffer#4869

Open
jurrejelle wants to merge 3 commits into
1.20.1from
jj/disallow-hoppering-into-pattern-buffers
Open

Set filter on inventory for pattern buffer#4869
jurrejelle wants to merge 3 commits into
1.20.1from
jj/disallow-hoppering-into-pattern-buffers

Conversation

@jurrejelle

Copy link
Copy Markdown
Contributor

What

closes #4821

Implementation Details

We still create the inventory since it subclasses ItemBusPartMachine, we just make it inaccessable

AI Usage

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

How Was This Tested

Before:
image

After:
image

@jurrejelle jurrejelle requested a review from a team as a code owner May 25, 2026 07:07
@jurrejelle jurrejelle added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels May 25, 2026
@github-actions github-actions Bot added 1.20.1 Tests: Passed Game Tests have passed on this PR labels May 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #4821 by preventing external item insertion into the ME Pattern Buffer’s inherited ItemBus inventory (which is not exposed via the UI), avoiding situations where items become stuck/inaccessible and can be lost.

Changes:

  • Disables all insertions into the part’s inherited bus inventory by applying an always-false item filter.
  • Adds an explanatory inline comment describing why the filter is applied.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Jun 11, 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: Failed Game Tests have failed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Items Piped into Me Pattern Buffer is stuck and gets deleted when buffer broken

2 participants