Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz authored Jul 9, 2024
1 parent 3fc88b1 commit b2d060d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public static function writeLLong(int $value) : string{
* @throws BinaryDataException
*/
public static function readVarInt(string $buffer, int &$offset) : int{
return bedrockbuf_writeVarInt($buffer, $offset, true) ?? throw new BinaryDataException("Failed to read VarInt");
return bedrockbuf_readVarInt($buffer, $offset, true) ?? throw new BinaryDataException("Failed to read VarInt");
}

/**
Expand Down

0 comments on commit b2d060d

Please sign in to comment.