mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fix some varints
This commit is contained in:
parent
8ced6547f2
commit
3ee43c5a17
@ -289,13 +289,13 @@ class BinaryStream extends \stdClass{
|
||||
|
||||
public function getBlockCoords(&$x, &$y, &$z){
|
||||
$x = $this->getVarInt();
|
||||
$y = $this->getByte();
|
||||
$y = $this->getUnsignedVarInt();
|
||||
$z = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function putBlockCoords($x, $y, $z){
|
||||
$this->putVarInt($x);
|
||||
$this->putByte($y);
|
||||
$this->putUnsignedVarInt($y);
|
||||
$this->putVarInt($z);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user