mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +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 IgniteSound implements Sound{
|
||||
|
||||
public function encode(?Vector3 $pos){
|
||||
return LevelEventPacket::create(LevelEventPacket::EVENT_SOUND_IGNITE, 0, $pos);
|
||||
public function encode(?Vector3 $pos) : array{
|
||||
return [LevelEventPacket::create(LevelEventPacket::EVENT_SOUND_IGNITE, 0, $pos)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user