From 1922672f1472a068548e00b3fe62c21534d9da5a Mon Sep 17 00:00:00 2001 From: Feildmaster Date: Sat, 18 Feb 2012 23:43:01 -0600 Subject: [PATCH] [Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 7f0d44c944..9087d6ffae 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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);