Made ProjectileHitEvent fire instantly when projectiles don't hit entities.

This commit is contained in:
sunkid
2011-07-14 10:46:02 -07:00
committed by EvilSeph
parent 43492ab6af
commit 30a382a6dc
5 changed files with 18 additions and 6 deletions

View File

@@ -141,12 +141,6 @@ public abstract class Entity {
}
public void die() {
// CraftBukkit start
if (this.getBukkitEntity() instanceof Projectile && !(this instanceof EntityFish)) {
ProjectileHitEvent event = new ProjectileHitEvent((Projectile) this.getBukkitEntity());
this.world.getServer().getPluginManager().callEvent(event);
}
// CraftBukkit end
this.dead = true;
}