PvPManager

PvPManager

3M Downloads

Lava placement on player / around player

djoey123 opened this issue ยท 3 comments

commented

Describe the bug

You can place lava on a player when your not clicking a block.
If you look through the player you can place lava

To reproduce the bug

2025-01-25.21-24-37.mp4

Plugin and Server version

Build from current source (25-01-2025)

Extra information

Did some debugging.
It will not reach
if (i.getType() == Material.FLINT_AND_STEEL || i.getType() == Material.LAVA_BUCKET) {
Because of:
if (clickedBlock == null)

commented

Minecraft version is: 1.20.4

commented

Interesting, thanks for investigating, I've had someone else report this before and thought it was just a bug with the event or minecraft. Although will make it tricky to fix, since I used the clicked block location to check around.

Edit: Actually that's not it, the PlayerInteractEvent is not triggered when clicking in the direction of the player. I forgot I had it fixed already on premium version.

commented

Should be fixed in next dev build