mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Particle::encode() now always returns ClientboundPacket[]
This commit is contained in:
@ -35,7 +35,7 @@ class SmokeParticle implements Particle{
|
||||
$this->scale = $scale;
|
||||
}
|
||||
|
||||
public function encode(Vector3 $pos){
|
||||
return LevelEventPacket::standardParticle(ParticleIds::SMOKE, $this->scale, $pos);
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelEventPacket::standardParticle(ParticleIds::SMOKE, $this->scale, $pos)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user