[SPIGOT-6351] Placing fluids out of reach Created: 08/Feb/21 Updated: 09/Feb/21 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Daniel Scherf | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | 1.16.5, bug, spigot |
Attachments: |
![]() |
Version: | CraftBukkit version 3007-Spigot-cd23533-a82b212 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
Players are able to place water and lava, despite the fact that the block should be out of reach and has no gray box like when it's targeted. Also, the PlayerInteractEvent is called but PlayerInteractEvent#getAction() returns Action.RIGHT_CLICKED_AIR, although the expected result would be Action.RIGHT_CLICKED_BLOCK. This is not normal Minecraft Vanilla behavior. |
Comments |
Comment by Daniel Scherf [ 09/Feb/21 ] |
That's still unexpected API behavior and can cause plugins who trust that this event will always be called for all block interactions to fail. |
Comment by Black Hole [ 08/Feb/21 ] |
The PlayerBucketEmptyEvent gets called anyway. |
Comment by Daniel Scherf [ 08/Feb/21 ] |
I also tested this in singleplayer, but in creative mode. You are right, this looks like a Minecraft bug. Spigot should still fix it because this unexpected behavior can cause a lot of problems. |
Comment by blablubbabc [ 08/Feb/21 ] |
Also applies to other interactable items, like for example spawn eggs. Also, this behavior (for both the water bucket and the spawn egg) can be observed in survival mode, but not in creative mode. Edit: Actually, I just tested this in single player and I am able to reproduce this behavior (water placement) there. So this might be a vanilla issue. |