Remove type-hints, fix some crashes

This commit is contained in:
Dylan K. Taylor 2016-10-24 09:46:01 +01:00
parent eed8c37eab
commit 6c1dd81130

View File

@ -293,7 +293,7 @@ class BinaryStream extends \stdClass{
$z = $this->getVarInt(); $z = $this->getVarInt();
} }
public function putBlockCoords(int $x, int $y, int $z){ public function putBlockCoords($x, $y, $z){
$this->putVarInt($x); $this->putVarInt($x);
$this->putByte($y); $this->putByte($y);
$this->putVarInt($z); $this->putVarInt($z);
@ -305,7 +305,7 @@ class BinaryStream extends \stdClass{
$z = $this->getLFloat(); $z = $this->getLFloat();
} }
public function putVector3f(float $x, float $y, float $z){ public function putVector3f($x, $y, $z){
$this->putLFloat($x); $this->putLFloat($x);
$this->putLFloat($y); $this->putLFloat($y);
$this->putLFloat($z); $this->putLFloat($z);