Particle::encode() now always returns ClientboundPacket[]

This commit is contained in:
Dylan K. Taylor
2020-10-31 15:51:17 +00:00
parent 5a320f22b7
commit 66edf5a165
38 changed files with 73 additions and 76 deletions

View File

@ -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)];
}
}