diff options
author | Feildmaster <admin@feildmaster.com> | 2012-02-09 21:13:35 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-09 22:20:44 -0500 |
commit | 391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0 (patch) | |
tree | 6c6c901e0411f9a8566bdaa180d97c01a5fccffc /src/main/java/net/minecraft/server/EntitySnowball.java | |
parent | 7ff8c175686cb0df980b3d0196052624fe8ccc21 (diff) | |
download | craftbukkit-391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0.tar craftbukkit-391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0.tar.gz craftbukkit-391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0.tar.lz craftbukkit-391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0.tar.xz craftbukkit-391ac23c9a6165b23ccc44abf29e6a8fb7b1b6e0.zip |
[Bleeding] Fire EntityDamageByEntityEvent's for EnderDragon being hit by Projectiles.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntitySnowball.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySnowball.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySnowball.java b/src/main/java/net/minecraft/server/EntitySnowball.java index 5090077b..f935fbf0 100644 --- a/src/main/java/net/minecraft/server/EntitySnowball.java +++ b/src/main/java/net/minecraft/server/EntitySnowball.java @@ -34,7 +34,7 @@ public class EntitySnowball extends EntityProjectile { boolean stick = false; if (movingEntity != null) { - if (movingEntity instanceof EntityLiving) { + if (movingEntity instanceof EntityLiving || movingEntity instanceof EntityComplexPart) { org.bukkit.entity.Entity damagee = movingEntity.getBukkitEntity(); Projectile projectile = (Projectile) this.getBukkitEntity(); |