mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Particle no longer extends Vector3
This commit is contained in:
@ -35,7 +35,7 @@ class Egg extends Throwable{
|
||||
|
||||
protected function onHit(ProjectileHitEvent $event) : void{
|
||||
for($i = 0; $i < 6; ++$i){
|
||||
$this->level->addParticle(new ItemBreakParticle($this, ItemFactory::get(Item::EGG)));
|
||||
$this->level->addParticle($this, new ItemBreakParticle(ItemFactory::get(Item::EGG)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class Snowball extends Throwable{
|
||||
|
||||
protected function onHit(ProjectileHitEvent $event) : void{
|
||||
for($i = 0; $i < 6; ++$i){
|
||||
$this->level->addParticle(new SnowballPoofParticle($this));
|
||||
$this->level->addParticle($this, new SnowballPoofParticle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user