Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Riptiding does not call PlayerItemDamageEvent

Open dawon opened this issue 1 year ago • 1 comments

Expected behavior

When player riptides using Riptide enchanted trident, PlayerItemDamageEvent should be called (and its cancellation should prevent damaging the item)

Observed/Actual behavior

The PlayerItemDamageEvent is not called when riptiding.

Steps/models to reproduce

  • get yourself Riptide enchanted Trident
  • try to cancel PlayerItemDamageEvent using a plugin
  • the event won't be called and trident will get damage

Plugin and Datapack List

only the test plugin

Paper version

[00:09:43 INFO]: This server is running Paper version 1.21.3-56-master@bb32b05 (2024-11-23T22:23:12Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT) You are running the latest version Previous version: 1.21.3-46-f8e2a67 (MC: 1.21.3)

Other

No response

dawon avatar Nov 23 '24 23:11 dawon

Yeah, I can replicate this. I will try to make a fix for it

Strokkur424 avatar Nov 30 '24 19:11 Strokkur424