Call the final event (#637)

This commit is contained in:
RoboMWM 2016-10-25 23:45:54 -07:00 committed by Christopher Martin
parent 5096d3d399
commit 37b75ec14d

View file

@ -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);