[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

@@ -192,7 +192,7 @@ public class EntityFishingHook extends Entity {
if (movingobjectposition.entity != null) {
// CraftBukkit start
boolean stick;
if (movingobjectposition.entity instanceof EntityLiving) {
if (movingobjectposition.entity instanceof EntityLiving || movingobjectposition.entity instanceof EntityComplexPart) {
org.bukkit.entity.Entity damagee = movingobjectposition.entity.getBukkitEntity();
Projectile projectile = (Projectile) this.getBukkitEntity();