Add check for Thorns damage - Fixes BUKKIT-3505
By: riking <rikingcoding@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user