Skip to content

fix waterlogged bucket incorrect logging (Resolves #858)#860

Open
guss-alberto wants to merge 1 commit intoPlayPro:masterfrom
guss-alberto:bucket-fix
Open

fix waterlogged bucket incorrect logging (Resolves #858)#860
guss-alberto wants to merge 1 commit intoPlayPro:masterfrom
guss-alberto:bucket-fix

Conversation

@guss-alberto
Copy link
Contributor

@guss-alberto guss-alberto commented Feb 15, 2026

Simple fix for Issue #858

By using event.getBlock() instead of event.getBlockClicked() there is no longer the need to manually check for waterlogged blocks and offset the position, as that's handled by Bukkit.

The getBlock() method is still present in older versions as far back as 1.14, so compatibility isn't affected.

Although the bug only affects bucket emptying, I've also changed it on bucketFillListener just for consistency, the result doesn't actually change.

I've tested this fix, and everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant