We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c8409 commit 07bb510Copy full SHA for 07bb510
src/PingPreOld17.php
@@ -53,6 +53,9 @@ protected function getStatus(): void
53
$data = \substr($data, 3); // Strip packet header (kick message packet and short length)
54
$data = \iconv('UTF-16BE', 'UTF-8', $data);
55
56
+ if ($data === false)
57
+ throw new ReceiveStatusException('Failed to receive status.');
58
+
59
// Are we dealing with Minecraft 1.4+ server?
60
if($data[1] === "\xA7" && $data[2] === "\x31") {
61
$data = \explode( "\x00", $data);
0 commit comments