Add check for Thorns damage - Fixes BUKKIT-3505

This commit is contained in:
riking 2013-03-23 19:41:33 -07:00
parent 62c6d223e4
commit 8d3ba07f93

View file

@ -389,6 +389,8 @@ public class CraftEventFactory {
} else if (damager.getBukkitEntity() instanceof Projectile) {
cause = DamageCause.PROJECTILE;
}
} else if ("thorns".equals(source.translationIndex)) {
cause = DamageCause.THORNS;
}
return callEntityDamageEvent(damager, entity, cause, damage);