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

Fix flowing blocks being valid for making a fluid bottomless #6036

Conversation

IThundxr
Copy link
Member

The check for seeing if a body of fluid is bottomless didn't check if its a source block before adding it to the number of valid blocks

@IThundxr IThundxr added pr type: fix PR fixes a bug pr flag: simple PR has minimal changes labels Mar 5, 2024
@simibubi
Copy link
Collaborator

simibubi commented Aug 6, 2024

The visited set is required for the block search not to check any position twice, so would this not end up with the search caught in a loop of flowing blocks?

@IThundxr
Copy link
Member Author

IThundxr commented Aug 6, 2024

The visited set is required for the block search not to check any position twice, so would this not end up with the search caught in a loop of flowing blocks?

It shouldn't i remember testing this and it being fine but this is quite old, there might be a better way to just disallow flowing blocks from being counted alongside source blocks

@simibubi
Copy link
Collaborator

simibubi commented Aug 6, 2024

The hose pulley code is quite a maze. It should probably be rebuilt from the ground up as part of a larger refactor

@IThundxr
Copy link
Member Author

IThundxr commented Aug 6, 2024

The hose pulley code is quite a maze. It should probably be rebuilt from the ground up as part of a larger refactor

Fluid code in general should probably be refactored, theres dozens of issues about it currently with some performance issues aswell, i might take a look at it post 1.21

@simibubi
Copy link
Collaborator

simibubi commented Aug 7, 2024

I'll postpone this issue for now then. The code is too brittle to mess with on end-of-support versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr flag: simple PR has minimal changes pr type: fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants