[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

@@ -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();