mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Sound::encode() now always returns an array
This commit is contained in:
@ -28,7 +28,7 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
||||
|
||||
class TotemUseSound implements Sound{
|
||||
|
||||
public function encode(?Vector3 $pos){
|
||||
return LevelEventPacket::create(LevelEventPacket::EVENT_SOUND_TOTEM, 0, $pos);
|
||||
public function encode(?Vector3 $pos) : array{
|
||||
return [LevelEventPacket::create(LevelEventPacket::EVENT_SOUND_TOTEM, 0, $pos)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user