13
0
geforkt von Mirrors/Paper

[Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776

By: Feildmaster <admin@feildmaster.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2012-02-18 23:43:01 -06:00
Ursprung 88fca68972
Commit da4df32343

Datei anzeigen

@ -422,7 +422,7 @@ public class CraftEventFactory {
}
public static boolean handleProjectileEvent(Projectile projectile, Entity target, DamageSource damagesource, int damage) {
if (target instanceof EntityLiving || target instanceof EntityComplexPart) {
if (target instanceof EntityLiving || target instanceof EntityComplexPart || target instanceof EntityEnderCrystal) {
org.bukkit.entity.Entity damagee = target.getBukkitEntity();
EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, damage);