[SPIGOT-1957] PlayerInteractEntityEvent with painting fired twice Created: 17/Mar/16  Updated: 17/Mar/16  Resolved: 17/Mar/16

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

Type: Bug Priority: Minor
Reporter: Erik-Jan Rieksen Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 1.9, bug, entity, event, spigot

Attachments: PNG File ss+(2016-03-17+at+07.14.30).png    

 Description   

When right clicking on a painting the PlayerInteractEvent is fired twice.

This isn't the case when right clicking on item frames, with identical code.



 Comments   
Comment by Black Hole [ 17/Mar/16 ]

Interact events simple forward the packets sent by the client. Since 1.9 there are two interact events by default. There might be some special code in the client for item frames to only send one.
My theory: A hack by mojang to rotate the item in the item frame by one only.

Comment by Matthew Steglinski [ 17/Mar/16 ]

Duplicate of SPIGOT-1744/SPIGOT-1604/SPIGOT-1570/SPIGOT-1793.

Comment by Erik-Jan Rieksen [ 17/Mar/16 ]

PlayerInteractEntityEvent*

Code: http://puu.sh/nK1vg/b6bbfb10d2.txt

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