mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Particle::encode() now always returns ClientboundPacket[]
This commit is contained in:
@ -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)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user