Why PlayerInteractEvent with right click fishing rod fires 2 event?

Discussion in 'Plugin Development' started by nhap969, Aug 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    nhap969

    Code:java
    1. @EventHandler(priority = EventPriority.LOWEST)
    2. public void onPlayerInteractEvent(PlayerInteractEvent ev) {
    3. if (ev.getMaterial() == Material.FISHING_ROD) {
    4. ev.getPlayer().sendMessage(ev.getAction().name());
    5. }
    6. }

    This code will generates both left and right click event action when right clicking with fishing rod.
    Is that a bug?
     
  2. Offline

    mine-care

    Probably yes, mabe because in older versions of mc both clicks shooter the hook :) good catch
     
    nhap969 likes this.
  3. Offline

    Tecno_Wizard

    nhap969, I would report this in the bug section.
     
    nhap969 likes this.
Thread Status:
Not open for further replies.

Share This Page