-
-
Notifications
You must be signed in to change notification settings - Fork 636
Description
Steps to reproduce
- place any waterloggable block
- shift+click with a water bucket on any side of the waterloggable block
- enable inspector with
/co i - inspect the water placed on top and any water that spreads
(optional)
- run
/co rollback t:10m r:10 - run
/co undo
Expected result
The water, and any place it flows in should be logged as being placed by the user (e.g. + Intelli placed water.).
Rolling back and restoring should return the same structure that was built.
Observed results
The water is logged as being placed inside the waterloggable block itself, instead of on top of it.
Any water that flowed from it is then logged as #water ( + #water placed water.) instead of being placed by the user as expected.
This means user-based rollbacks don't roll back the water properly, and restores produce an incorrect result.
The structure on the LEFT was is what was placed, the structure on the RIGHT is what was placed by the rollback+restore, with the waterlogged stairs instead of the water on top .
This is most likely due to the fix of MC-173730 in Minecraft 1.21.9. Logging works as expected in previous versions.
Possible fix
Implement version and player sneaking check in PlayerBucketEmptyListener.
Use event.getBlock() instead of event.getBlockClicked() if possible