[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. |
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. |
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. |