Skip to content

Commit

Permalink
Fix packet id not being read as varint
Browse files Browse the repository at this point in the history
Fixes #148
  • Loading branch information
xPaw authored Dec 24, 2019
1 parent 497af1d commit 92103dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MinecraftPing.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function Query( )
return FALSE;
}

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

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

Expand Down

0 comments on commit 92103dd

Please sign in to comment.