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 issues with breaking ice #1587

Merged
merged 3 commits into from
Mar 16, 2023
Merged

Fix issues with breaking ice #1587

merged 3 commits into from
Mar 16, 2023

Conversation

TechLord22
Copy link
Member

What

This PR fixes two issues with breaking ice.

First, it checks if the tool ItemStack is empty. Doing so prevents the ice breaking code from applying when mining with things other than tools. This previously caused ice to never create water when broken with an empty hand, for example.

Second, it fixes the "looping water" bug, where flowing water moving into the blockspace would get repeatedly deleted, after the initial ice block's water was removed.

Outcome

Fixes bugs with breaking ice.

@TechLord22 TechLord22 added the type: bug Something isn't working label Mar 9, 2023
@TechLord22 TechLord22 added this to the 2.5.5 milestone Mar 13, 2023
Copy link
Contributor

@ALongStringOfNumbers ALongStringOfNumbers left a comment

Choose a reason for hiding this comment

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

I cannot reproduce the issue of ice never creating water when broken with an empty hand. So I am not sure if the empty check is needed at all.

But the other fix works correctly, and a check to empty won't hurt anything. At this point, do we still even need to use the task scheduler?

@TechLord22 TechLord22 merged commit 6828cc2 into master Mar 16, 2023
@TechLord22 TechLord22 deleted the tc-fix-ice-breaking branch March 16, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants