Fix some varints

This commit is contained in:
Dylan K. Taylor 2016-11-17 18:09:25 +00:00
parent 8ced6547f2
commit 3ee43c5a17

View File

@ -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);
} }