[SPIGOT-5661] Dropping Item fires wrong event Created: 07/Apr/20  Updated: 08/Apr/20  Resolved: 08/Apr/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Cynthia Yantis Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.15.2, spigot

Attachments: File DemoPlugin.jar    
Issue Links:
Duplicate
duplicates SPIGOT-5632 Dropping an item while targetting air... Resolved
Version: CraftBukkit version git-Spigot-a03b1fd-5838285 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

If you drop an itemstack, then the PlayerInteractEvent is fired only when you are throwing an item and not looking at a block. This event shouldn't be called at all since there is already an event for it, much less only being called half the time.

Jar is attached for reproduction. Listens to PlayerInteractEvent and prints out the Action

DemoPlugin.jar



 Comments   
Comment by Cynthia Yantis [ 08/Apr/20 ]

Exact line being called is 1645 in PlayerConnection. Tested via debugg

Generated at Sat Dec 13 13:43:17 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.