Make fluid conduits check all tanks #845

Closed
ferriarnus wants to merge 1 commit from fluid-conduit-iterate into dev/1.21.1
ferriarnus commented 2024-10-03 19:46:24 +00:00 (Migrated from github.com)

Description

Makes the fluid conduit iterate through all the fluids in the tank.

TODO

  • If this is a draft, populate this with remaining tasks. Otherwise, remove this section.

Breaking Changes

List any breaking changes in this section, such as: changed/removed APIs, changed or removed items/blocks or modifications to recipes and gameplay mechanics.

Checklist

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.
# Description Makes the fluid conduit iterate through all the fluids in the tank. <!-- If you're submitting a Draft PR, consider providing a TODO list using checkboxes --> # TODO - [ ] If this is a draft, populate this with remaining tasks. Otherwise, remove this section. # Breaking Changes List any breaking changes in this section, such as: changed/removed APIs, changed or removed items/blocks or modifications to recipes and gameplay mechanics. <!-- For drafts, fill this in as you go; if you are leaving draft, make sure these are all complete. --> # Checklist - [ ] My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you). - [ ] I have made corresponding changes to the documentation. - [ ] My changes are ready for review from a contributor. <!-- Thanks to: https://embeddedartistry.com/blog/2017/08/04/a-github-pull-request-template-for-your-projects/ for the building blocks of this template -->
Rover656 commented 2024-10-05 22:51:47 +00:00 (Migrated from github.com)

So I'm reading this over and wondering if we should actually do this similarly to the suggestion #840. This would still get stuck on the first tank in a fluid handler, even if it only had a small amount of fluid in the first tank.

That said - this PR also solves a problem of fluid conduits not working at all, when lockedFluid changed away from being Optional, that completely breaks the logic 😅

Might be worth more of a chat in Discord tomorrow, but honestly I think 840 might be a more "complete" solution to this after reading it over again. Thanks!

So I'm reading this over and wondering if we should actually do this similarly to the suggestion #840. This would still get stuck on the first tank in a fluid handler, even if it only had a small amount of fluid in the first tank. That said - this PR also solves a problem of fluid conduits not working at all, when lockedFluid changed away from being Optional, that completely breaks the logic 😅 Might be worth more of a chat in Discord tomorrow, but honestly I think 840 might be a more "complete" solution to this after reading it over again. Thanks!
Rover656 commented 2024-10-12 00:53:09 +00:00 (Migrated from github.com)

Okay I'm going to close this in favour of #840 after our discussion in Discord and thinking about this further. I'll port it up to 1.21 and fix the fluid problems at the same time :) Thanks for looking into this though!!

Okay I'm going to close this in favour of #840 after our discussion in Discord and thinking about this further. I'll port it up to 1.21 and fix the fluid problems at the same time :) Thanks for looking into this though!!

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Team-EnderIO/EnderIO#845
No description provided.