diff options
author | Feildmaster <admin@feildmaster.com> | 2012-02-18 23:43:01 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-19 01:06:38 -0500 |
commit | 1922672f1472a068548e00b3fe62c21534d9da5a (patch) | |
tree | 386e69bdc68326950928005dc68be7a239ff7392 /src | |
parent | b06719dd03aa722410d54b9f8adc4030f9eb03a8 (diff) | |
download | craftbukkit-1922672f1472a068548e00b3fe62c21534d9da5a.tar craftbukkit-1922672f1472a068548e00b3fe62c21534d9da5a.tar.gz craftbukkit-1922672f1472a068548e00b3fe62c21534d9da5a.tar.lz craftbukkit-1922672f1472a068548e00b3fe62c21534d9da5a.tar.xz craftbukkit-1922672f1472a068548e00b3fe62c21534d9da5a.zip |
[Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 7f0d44c9..9087d6ff 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); |