moved firing of ProjectileHitEvent for mojang projectiles

This commit is contained in:
sunkid authored and Erik Broes committed 2011-12-27 19:33:28 +01:00
1 parent fb8a45b648
commit 5adcf526ab
3 files changed
+11 -6

No files matched your search

@@ -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) {