mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Cleaned up muddled varint/varlong mess, added separate methods for entity unique and runtime ids, moved some MCPE-protocol-specific methods out of BinaryStream
This commit is contained in:
@ -44,7 +44,7 @@ class UseItemPacket extends DataPacket{
|
||||
public $slot;
|
||||
|
||||
public function decode(){
|
||||
$this->getBlockCoords($this->x, $this->y, $this->z);
|
||||
$this->getBlockPosition($this->x, $this->y, $this->z);
|
||||
$this->blockId = $this->getUnsignedVarInt();
|
||||
$this->face = $this->getVarInt();
|
||||
$this->getVector3f($this->fx, $this->fy, $this->fz);
|
||||
|
Reference in New Issue
Block a user