PlayerInteractEntityEvent fires twice in spectator mode for right click actions.

    • Type: Bug
    • Resolution: Invalid
    • Priority: Minor
    • None
    • Affects Version/s: None
    • CraftBukkit version 4430-Spigot-d421948-d20d4c1 (MC: 1.21.4) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
    • Yes

      When a player right clicks ONCE in spectator mode, PlayerInteractEntityEvent fires twice.
       
      For example,
       
      @EventHandler
      public void onEntityRightClick(PlayerInteractEntityEvent event) {
      if (event.getRightClicked() instanceof Cat cat)

      { event.getPlayer().sendMessage("Click!"); }

      }

      returns in the chat in game
      Click!
      Click!

      when a cat is right clicked ONCE when the player is in spectator mode.

      This does not occur for other gamemodes, whereas it fires properly (i.e. one "Click!").

            Assignee:
            Unassigned
            Reporter:
            Chris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: