Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
kaniteru opened this issue Apr 21, 2022 · 1 comment
Open
3 tasks done

Comments

@kaniteru
Copy link

kaniteru commented Apr 21, 2022

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:

@PetteriM1
Copy link
Member

Correction: it does cancel the event but doesn't send a block update to undo it client side

#1615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants