[Bleeding] Fire EntityDamageByEntityEvent's for EnderDragon being hit by Projectiles.

This commit is contained in:
Feildmaster
2012-02-09 21:13:35 -06:00
committed by EvilSeph
parent 7ff8c17568
commit 391ac23c9a
6 changed files with 8 additions and 9 deletions

View File

@@ -201,8 +201,7 @@ public class EntityArrow extends Entity {
// CraftBukkit start
boolean stick;
if (entity instanceof EntityLiving) {
if (entity instanceof EntityLiving || entity instanceof EntityComplexPart) {
org.bukkit.entity.Entity damagee = movingobjectposition.entity.getBukkitEntity();
Projectile projectile = (Projectile) this.getBukkitEntity();
@@ -218,6 +217,7 @@ public class EntityArrow extends Entity {
} else {
stick = movingobjectposition.entity.damageEntity(damagesource, l);
}
if (stick) {
// CraftBukkit end
if (movingobjectposition.entity instanceof EntityLiving) {