13
0
geforkt von Mirrors/Paper

Add check for Thorns damage - Fixes BUKKIT-3505

Dieser Commit ist enthalten in:
riking 2013-03-23 19:41:33 -07:00
Ursprung 62c6d223e4
Commit 8d3ba07f93

Datei anzeigen

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