Projectile: remove redundant parent onHit() calls

This commit is contained in:
Dylan K. Taylor 2018-03-10 10:31:24 +00:00
parent 2ee01eb195
commit 486edf0e55
3 changed files with 0 additions and 4 deletions

View File

@ -37,6 +37,5 @@ class Egg extends Throwable{
for($i = 0; $i < 6; ++$i){
$this->level->addParticle(new ItemBreakParticle($this, ItemFactory::get(Item::EGG)));
}
parent::onHit($event);
}
}

View File

@ -67,8 +67,6 @@ class EnderPearl extends Throwable{
$owner->attack(new EntityDamageEvent($owner, EntityDamageEvent::CAUSE_FALL, 5));
}
parent::onHit($event);
$this->flagForDespawn();
}
}

View File

@ -33,6 +33,5 @@ class Snowball extends Throwable{
for($i = 0; $i < 6; ++$i){
$this->level->addParticle(new SnowballPoofParticle($this));
}
parent::onHit($event);
}
}