Closed limestick closed 1 month ago
Created two EventHandler functions in a single Listener class. While EntityDamageEvent triggers without fail, EntityDamageByEntityEvent never triggers, even while the player gets damaged by a Monster.
Tested on source code: https://github.com/limestick/SkillIssue/tree/poseidon-106
Solved it by casting the EntityDamageEvent to EntityDamageByEntityEvent in my onEntityDamage function.
EntityDamageEvent
EntityDamageByEntityEvent
onEntityDamage
Created two EventHandler functions in a single Listener class. While EntityDamageEvent triggers without fail, EntityDamageByEntityEvent never triggers, even while the player gets damaged by a Monster.
Tested on source code: https://github.com/limestick/SkillIssue/tree/poseidon-106