mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 22:55:06 +01:00
Add check for Thorns damage - Fixes BUKKIT-3505
This commit is contained in:
parent
62c6d223e4
commit
8d3ba07f93
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue