mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +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 HappyVillagerParticle implements Particle{
|
||||
|
||||
public function encode(Vector3 $pos){
|
||||
return LevelEventPacket::standardParticle(ParticleIds::VILLAGER_HAPPY, 0, $pos);
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelEventPacket::standardParticle(ParticleIds::VILLAGER_HAPPY, 0, $pos)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user