-
Bug
-
Resolution: Invalid
-
Minor
-
None
-
None
-
git-Spigot-f39a89e-f777640 (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT)
-
Yes
This is a behaviour that doesnt happen in spigot 1.14.4 but yes in the 1.15 version.
When right clicking potions and pointing the air, the PlayerInteractEvent is being called twice with Hand (I am cancelling the call if Off hand is calling). This doesnt happen if you are right clicking a block or a mob, just the air. And this doesnt happen if you are using left click.
I have made a test plugin so you can see it, basicly, just interact with items and you will notice the difference. The plugin tells you that the event is being called, with which item and if HAND called it. Also, I recorded a video, which I couldnt upload because of size but here is the link: https://streamable.com/ed1do
As far as I tested this bug happens with this items: (it doesnt happen with GLASS_BOTTLE)
- POTION (any kind)
- SPLASH_POTION (any kind)
- LINGERING_POTION (any kind)
- EXP_BOTTLE
- HONEY_BOTTLE
- ENDER_PEARL
Source code of test plugin: https://pastebin.com/VPLpmMme
- is duplicated by
-
SPIGOT-5632 Dropping an item while targetting air causes a PlayerInteractEvent
- Resolved
-
PLUG-370 dropping items fires interact event
- Resolved
-
SPIGOT-5452 Right clicking entity calls PlayerInteractEvent and PlayerAnimationEvent
- Resolved
-
SPIGOT-6044 PlayerInteractEvent Trigger left click air when right clicking air with Map
- Resolved
-
SPIGOT-6421 PlayerInteractEvent gets called for RIGHT_CLICK_AIR and LEFT_CLICK_AIR when throwing snowballs or enderpearls
- Resolved