moved firing of ProjectileHitEvent for mojang projectiles

This commit is contained in:
sunkid
2011-12-27 10:31:00 -08:00
committed by Erik Broes
parent fb8a45b648
commit 5adcf526ab
3 changed files with 11 additions and 6 deletions

View File

@@ -27,9 +27,6 @@ public class EntityEgg extends EntityProjectile {
protected void a(MovingObjectPosition movingobjectposition) {
// CraftBukkit start
ProjectileHitEvent phe = new ProjectileHitEvent((Projectile) this.getBukkitEntity());
this.world.getServer().getPluginManager().callEvent(phe);
if (movingobjectposition.entity != null) {
boolean stick;
if (movingobjectposition.entity instanceof EntityLiving) {