Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7472

Right-clicking with an armor piece on your hand to equip it produces a LEFT_CLICK_AIR interaction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3862-Spigot-d2eba2c-db4ba28 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT)
    • Yes

      I used PlayerInteractEvent to check when a player equips an armor piece that is in their hand by right-clicking it, expecting that the interaction type would be Action.RIGHT_CLICK_AIR. However, my plugin wasn't working so I made it log the action, and I was surprised to find that the interaction type was Action.LEFT_CLICK_AIR.

      Before you ask, when right-clicking a block, the action is correctly Action.RIGHT_CLICK_BLOCK.

            Unassigned Unassigned
            ManosSef ManosSef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: