mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Call the final event (#637)
This commit is contained in:
parent
5096d3d399
commit
37b75ec14d
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ public class DamageHandler {
|
|||
}
|
||||
|
||||
EntityDamageByEntityEvent finalEvent = new EntityDamageByEntityEvent(source, entity, cause, damage);
|
||||
Bukkit.getServer().getPluginManager().callEvent(finalEvent);
|
||||
if (!finalEvent.isCancelled()) {
|
||||
damage = finalEvent.getDamage();
|
||||
((LivingEntity) entity).damage(damage, source);
|
||||
|
|
Loading…
Reference in a new issue