EntityKnockbackByEntityEvent is called twice if triggered by a player doing a strong knockback attack. #11622
Labels
status: needs triage
type: bug
Something doesn't work as it was intended to.
version: 1.21.3
Game version 1.21.3
Expected behavior
EntityKnockbackByEntityEvent would be called a single time every time an entity was hit.
Observed/Actual behavior
EntityKnockbackByEntityEvent is called twice if it is triggered by a player who does a sprinting attack.
Steps/models to reproduce
Create a Paper plugin, register an EntityKnockbackByEntity listener and broadcast a debug message every time it runs.
Punch an entity like a mob or an animal without sprinting. It should broadcast the debug message once.
Now punch the entity again while sprinting. It'll now broadcast the debug message twice.
Plugin and Datapack List
knockbackEventTest
Paper version
This server is running Paper version 1.21.3-29-master@be886cf (2024-11-15T09:07:14Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.3-25-1ef4c0e (MC: 1.21.3)
Other
No response
The text was updated successfully, but these errors were encountered: