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

Change pipes to force connections to covers #2666

Merged
merged 2 commits into from
Dec 29, 2024
Merged

Conversation

krossgg
Copy link
Contributor

@krossgg krossgg commented Dec 29, 2024

What

When placing a filter or transfer cover on a pipe, the pipe is visually forced to connect to the cover. This PR makes it so that applying a cover also forces a logical connection from the pipe to the side that the cover is one.
In order to prevent mishaps, when a cover is removed from a pipe it will now also forcibly disconnect the pipe.

Implementation Details

Only applies to covers that return false in canPipePassThrough.

Outcome

Fixes #2660

Additional Information

Storage covers have been changed to only be placeable on machines.
Fluid Filters use the native getFluidHandlerCap of its cover container rather than querying the caps system

@krossgg krossgg added the type: bugfix general bug fixes label Dec 29, 2024
@krossgg krossgg requested a review from a team as a code owner December 29, 2024 03:30
@Ghostipedia Ghostipedia merged commit 80ffd9c into 1.20.1 Dec 29, 2024
3 checks passed
@Ghostipedia Ghostipedia deleted the kr/covers-on-pipes branch December 29, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix general bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Item pipes' rendering does not reflect their connectedness when using conveyor covers
2 participants