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

EntityKnockbackByEntityEvent is called twice if triggered by a player doing a strong knockback attack. #11622

Open
r6653116 opened this issue Nov 17, 2024 · 0 comments
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.3 Game version 1.21.3

Comments

@r6653116
Copy link

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

@r6653116 r6653116 added status: needs triage type: bug Something doesn't work as it was intended to. labels Nov 17, 2024
@papermc-sniffer papermc-sniffer bot added the version: 1.21.3 Game version 1.21.3 label Nov 17, 2024
@papermc-projects papermc-projects bot moved this to 🕑 Needs Triage in Issues: Bugs Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.3 Game version 1.21.3
Projects
Status: 🕑 Needs Triage
Development

No branches or pull requests

1 participant