mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Projectile: remove redundant parent onHit() calls
This commit is contained in:
parent
2ee01eb195
commit
486edf0e55
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -67,8 +67,6 @@ class EnderPearl extends Throwable{
|
||||
$owner->attack(new EntityDamageEvent($owner, EntityDamageEvent::CAUSE_FALL, 5));
|
||||
}
|
||||
|
||||
parent::onHit($event);
|
||||
|
||||
$this->flagForDespawn();
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,5 @@ class Snowball extends Throwable{
|
||||
for($i = 0; $i < 6; ++$i){
|
||||
$this->level->addParticle(new SnowballPoofParticle($this));
|
||||
}
|
||||
parent::onHit($event);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user