Skip to content

PlayerInteractEvent is called twice with "LEFT_CLICK_AIR" when actually right clicking a block in adventure mode #5015

@MinecraftiUndCo

Description

@MinecraftiUndCo

What behaviour is expected:

PlayerInteractEvent calling only twice with "RIGHT_CLICK_BLOCK" for main- and off-hand

What behaviour is observed:

After the normal two events, the events is fired again twice but now with "LEFT_CLICK_AIR" when the player is in adventure mode

Steps/models to reproduce:

Listen on PlayerInteractEvent while player is in adventure mode and right-clicking a block. Important: The event has to be setCancelled(true) in a plugin to have the two faulty events getting fired.

Paper version:

git-Paper-386 (MC: 1.16.4)

Anything else:

Problem was already discussed with @MiniDigger in Discord and he stated that the commit 5650a41 with paper version #369 broked it.

grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.16Game version 1.16

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions