diff --git a/src/QueryBedrock.php b/src/QueryBedrock.php index 9019390..21b6c23 100644 --- a/src/QueryBedrock.php +++ b/src/QueryBedrock.php @@ -58,9 +58,11 @@ protected function getStatus(): void // TODO: What are the 2 bytes after the magic? $data = \substr($data, 35); - $data = \explode(';', $data); $offset = \count($data) - 13; + if ($offset < 0) + $offset = 0; + $info = [ 'game_id' => $data[0] ?? null, 'hostname' => [],