[SPIGOT-1604] PlayerInteractEvent called twice when main hand empty and off-hand not Created: 01/Mar/16 Updated: 01/Mar/16 Resolved: 01/Mar/16 |
|
| Status: | Closed |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | tur tur | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | 1.9, bug, spigot | ||
| Environment: |
Minecraft 1.9 |
||
| Description |
|
When right click a block with a block in the off-hand (place the block) and the main hand is empty, the PlayerInteractEvent called twice (one time with an item and another time without, probably call for each hand) Code: @EventHandler public void onPlayerIneractEvent(PlayerInteractEvent e) { System.out.println("onPlayerIneractEvent() called"); System.out.println("onPlayerIneractEvent() item: " + (e.hasItem() ? e.getItem().getType() : "null")); } Result (Sand in the off-hand, nothing in the main hand): |
| Comments |
| Comment by md_5 [ 01/Mar/16 ] |
|
Duplicate, intended. |