Add new field to UseItemPacket

This commit is contained in:
Dylan K. Taylor 2016-12-02 18:26:29 +00:00
parent ebd2830770
commit 28c3a882f8

View File

@ -30,6 +30,7 @@ class UseItemPacket extends DataPacket{
public $x;
public $y;
public $z;
public $blockId;
public $face;
public $item;
public $fx;
@ -42,6 +43,7 @@ class UseItemPacket extends DataPacket{
public function decode(){
$this->getBlockCoords($this->x, $this->y, $this->z);
$this->blockId = $this->getUnsignedVarInt();
$this->face = $this->getVarInt();
$this->getVector3f($this->fx, $this->fy, $this->fz);
$this->getVector3f($this->posX, $this->posY, $this->posZ);