Fixed EntityDamageByEntityEvent to call for every attackable entity. Fixes BUKKIT-1129, Fixes BUKKIT-1054 and Fixes BUKKIT-147.

This commit is contained in:
feildmaster authored and EvilSeph committed 2012-03-15 05:11:48 -04:00
1 parent c625d00351
commit 4503167283
11 files changed
+72 -185

No files matched your search

@@ -221,8 +221,8 @@ public class EntityArrow extends Entity {
}
// CraftBukkit end
}
// CraftBukkit - entity.damageEntity -> event function
if (org.bukkit.craftbukkit.event.CraftEventFactory.handleProjectileEvent(projectile, entity, damagesource, l)) {
if (movingobjectposition.entity.damageEntity(damagesource, l)) {
if (movingobjectposition.entity instanceof EntityLiving) {
++((EntityLiving) movingobjectposition.entity).aI;
if (this.n > 0) {