FallingTree icon indicating copy to clipboard operation
FallingTree copied to clipboard

Reset breaking block state when sneak status changes

Open Fyoncle opened this issue 10 months ago • 9 comments

Edit

When a block stats breaking, if the player is in a wrong state (ie mod disabled) then the mod doesn;t activates and the block is broken at normal speed. If, before the block breaks, the player gets into a valid state (mod enabled), then the mod activates and the whole tree falls. This leads to bypassing the settings for the custom break speed when it is set to something else than 0.

The idea here is to be able to stop the current breaking progress when the mod reactivates so the proper breaking duration is applied.

Describe the bug

Same issue in Tree Harvester, check this issue for more explanation: https://github.com/Serilum/.issue-tracker/issues/2126

He tried to fix that, and he did. But this introduced another bug which is a issue i opened: https://github.com/Serilum/.issue-tracker/issues/2659

Minecraft version

1.20.1

Fabric API version

0.92.2

Mod version

4.3.4

Configuration

All default

Relevant log output

No need

Fyoncle avatar Feb 15 '25 21:02 Fyoncle