Skip to content

Commit 92103dd

Browse files
authored
Fix packet id not being read as varint
Fixes #148
1 parent 497af1d commit 92103dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MinecraftPing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function Query( )
100100
return FALSE;
101101
}
102102

103-
fgetc( $this->Socket ); // packet type, in server ping it's 0
103+
$this->ReadVarInt( ); // packet type, in server ping it's 0
104104

105105
$Length = $this->ReadVarInt( ); // string length
106106

0 commit comments

Comments
 (0)