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

@ -29,7 +29,7 @@ use pocketmine\network\mcpe\protocol\types\ParticleIds;
class RainSplashParticle implements Particle{
public function encode(Vector3 $pos){
return LevelEventPacket::standardParticle(ParticleIds::RAIN_SPLASH, 0, $pos);
public function encode(Vector3 $pos) : array{
return [LevelEventPacket::standardParticle(ParticleIds::RAIN_SPLASH, 0, $pos)];
}
}