-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
EntityDamageByEntityEvent called more than should. #11044
Copy link
Copy link
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21Game version 1.21Game version 1.21
Metadata
Metadata
Assignees
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.version: 1.21Game version 1.21Game version 1.21
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
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.
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