3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

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