geforkt von Mirrors/Paper
Add check for Thorns damage - Fixes BUKKIT-3505
Dieser Commit ist enthalten in:
Ursprung
62c6d223e4
Commit
8d3ba07f93
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren