Skip to content

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

@r6653116

Description

@r6653116

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    🕑 Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions