Skip to content

PlayerInteractEvent "event.setCancelled" doesn't cancel door open/close event) #1977

@kaniteru

Description

@kaniteru

Expected Behavior

When you do a event.setCancelled(),
Door opening and closing events should be canceled when right-clicking on any part of the door.

Actual Behavior

If you right-click the upper part of the door, the event is not canceled.
but, if you right-click at the bottom of the door, the event is canceled normally.

Steps to Reproduce

  1. Create a PlayerInteractEvent Listener.
  2. Do a event.setCancelled() anywhere in the event.
  3. Right-click the upper part of the door to open or close it.

Debug information

  • Debug link:
  • Timings link (if relevant):

Crashdump, Backtrace or Other Files

https://imgur.com/a/hIKzRiT

Checklist:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions