Fix conduit disconnections #880
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#880
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/disconnections"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Changes disconnections of blocks from the conduit network to remain a
DynamicConnectionState, from wrench or gui interactions. This fixes an issue with the GUI opening an invalid connection and not being able to change any settings. It also simply improves the usability of disconnected conduits, as without this change, it would be fairly annoying to reconnect them, especially with a multi-conduit bundle.I decided to not drop any filters when the connection is disabled, and instead only when the conduit or block it's connected to is broken. That could be changed though.
To reproduce the GUI issue without these changes, place an item and fluid conduit next to a fluid tank and disconnect the item conduit, then click on the item conduit in the bundle.

I'm aware that this bug could be fixed in other ways, but I chose this one because of the usability reasons.
Checklist
Off the back of officially discontinuing 1.20.1 support, I wanted to check this final PR.
As I don't have a lot of time to review PRs at the moment - if you can rebase this branch and record a before + after video of these changes working, I'll be happy to merge and release these changes.
I also want to apologise for my lack of time to review this PR.
If you do not wish to continue this PR, feel free to close it.
Sure, I'll be able to do so in about a week
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitai modularize this function.@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai generate unit teststo generate unit tests for this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.Other keywords and placeholders
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed.@coderabbitai summaryto generate the high-level summary at a specific location in the PR description.@coderabbitaianywhere in the PR title to generate the title automatically.CodeRabbit Configuration File (
.coderabbit.yaml).coderabbit.yamlfile to the root of your repository.# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.jsonDocumentation and Community
Sorry about the inaccurate estimate.
Here's the issue before the changes:
https://github.com/user-attachments/assets/aab7557f-f415-4f79-bcf8-f58ed561a2bb
(At the end, I'm clicking on the extract button, but it does nothing.)
And this is with it fixed:
https://github.com/user-attachments/assets/e749d068-63fb-464b-82a3-8ccf4956d558
I also made sure it worked with the conduit probe in this update, since it wasn't present originally.
Looks like this is working as described, I'm happy to merge. Thanks for your work on this, and apologies for how long it took!