mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 15:20:21 +01:00
Add check for Thorns damage - Fixes BUKKIT-3505
By: riking <rikingcoding@gmail.com>
This commit is contained in:
parent
329ac32171
commit
4f70ebc8b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user