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