[SPIGOT-1643] PlayerInteractEntityEvent fires twice per click Created: 02/Mar/16  Updated: 16/Oct/16  Resolved: 02/Mar/16

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

Type: Bug Priority: Minor
Reporter: arcwolf Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.9, bug, entity, event
Environment:

CraftBukkit version git-Spigot-1a196e1-09b4549 (MC: 1.9) (Implementing API version 1.9-R0.1-SNAPSHOT)



 Description   

public void onPlayerInteractEntity(PlayerInteractEntityEvent event)

{ System.out.println("Test"); }

}

Prints two "Test" per single right click.
If this is by design then there needs to be another method besides event.getRightClicked(); maybe an event.getLeftClicked(); ?? or even an action enum like PlayerInteract?



 Comments   
Comment by md_5 [ 02/Mar/16 ]

This bug states that there are duplicate events, not that there is no way to distinguish them.
There is another, valid, bug about the latter issue.

Comment by arcwolf [ 02/Mar/16 ]

Then that makes this event useless. There is no way to tell which click actually happened. Kind of makes no since. I physically clicked once yet I see two clicks. So yea, how do you differentiate between the two clicks. One phantom and one not. I dont understand.

Perhaps you could explain how one would distinguish between the two simultaneous event fires since this is now the new intended function.

Comment by md_5 [ 02/Mar/16 ]

Duplicate, intended.

Generated at Tue Apr 15 09:26:00 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.