Skip to content

EntityDamageByEntityEvent called more than should. #11044

@cb31455

Description

@cb31455

Expected behavior

EntityDamageByEntityEvent should be called 1x per dmg received on player. if i know well (as experienced) maximum 1 instance of damage should taken by player per every half second no matter how many enemy attacks at the same time (at least this was till 1.21 / 8d91b85Prioritize vanilla commands in function parsing (#11011)).

Observed/Actual behavior

EntityDamageByEntityEvent called multiple times if more enemy attack even this happens when 1 attack does dmg only.

Steps/models to reproduce

Let multiple enemies attack at the same time. 2 attacks registered / sec as received dmg, but EntityDamageByEntityEvent called way more times. This happens since 1.21 4d20922Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11024) update.
I made a picture, where red numbers "dmg taken" calculated by EntityDamageByEntityEvent in my plugin. that 4 red number happened under 0.5 sec.
bug

Plugin and Datapack List

Own plugin (ChipsTm), which worked nicely till patch 1.21 8d91b85Prioritize vanilla commands in function parsing (#11011)
Chunky. works fine.
Datapacks: vanilla, file/bukkit, paper

Paper version

This server is running Paper version 1.21-47-master@62ed302 (2024-07-07T17:34:15Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21-45-4d20922 (MC: 1.21)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21Game version 1.21

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions