You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Player riptides and swaps to another item, animation still appears and PlayerRiptideEvent is called.
Observed/Actual behavior
Player riptides and swaps to another item, no animation appears, and PlayerRiptideEvent is not called, however their character is as if they did Riptide.
Steps/models to reproduce
Get riptide trident
Hold right-click in water
Release and swap to another item quickly
Plugin and Datapack List
N/A
Paper version
This server is running Paper version 1.21.3-65-master@7e789e8 (2024-11-26T19:11:22Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-69-925c3b9 (MC: 1.21.1)
Other
No response
The text was updated successfully, but these errors were encountered:
Looking into this a bit deeper it seems that net.minecraft.world.entity.LivingEntity#releaseUsingItem() has its this.useItem as an empty item when switching, which causes the event to not happen server-side, yet the client probably still thinks that the trident gets used, causing a desync.
[00:12:06 INFO]: [--DebugLogger] releaseUsingItem: item.minecraft.trident
[00:12:06 INFO]: [Paper-Test-Plugin] A player just triggered a PRE
[00:12:14 INFO]: [--DebugLogger] releaseUsingItem: empty
[00:12:19 INFO]: [--DebugLogger] releaseUsingItem: empty
(The two empty releaseUsingItems is when I switched as I released)
Expected behavior
Player riptides and swaps to another item, animation still appears and PlayerRiptideEvent is called.
Observed/Actual behavior
Player riptides and swaps to another item, no animation appears, and PlayerRiptideEvent is not called, however their character is as if they did Riptide.
Steps/models to reproduce
Plugin and Datapack List
N/A
Paper version
This server is running Paper version 1.21.3-65-master@7e789e8 (2024-11-26T19:11:22Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-69-925c3b9 (MC: 1.21.1)
Other
No response
The text was updated successfully, but these errors were encountered: