Skip to content

Opening the container in adventure mode will fire PlayerInteractEvent twice simultaneously #10048

@KioProject123

Description

@KioProject123

Expected behavior

PlayerInteractEvent will only be fired once

Observed/Actual behavior

PlayerInteractEvent will be fired twice simultaneously

Use the following plugins for testing

    @EventHandler(priority = EventPriority.MONITOR)
    public void onPlayerInteract(PlayerInteractEvent e) {
        e.getPlayer().sendMessage(e.getHand() + " " + Bukkit.getCurrentTick());
    }

In survival mode
image

In adventure mode
image

Steps/models to reproduce

Right click container in adventure mode

Plugin and Datapack List

Only plugins for testing

Paper version

This server is running Paper version git-Paper-333 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 0b95298)
You are running the latest version

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: won't fixIssue will not be resolved or feature not added.type: bugSomething doesn't work as it was intended to.version: 1.20.4Game version 1.20.4

    Type

    No fields configured for Bug.

    Projects

    Status

    Invalid

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions