Merge branch 'master' into api3/network

This commit is contained in:
Dylan K. Taylor
2017-03-12 12:22:11 +00:00
10 changed files with 187 additions and 120 deletions

View File

@ -31,15 +31,15 @@ class MobEquipmentPacket extends DataPacket{
public $eid;
public $item;
public $slot;
public $selectedSlot;
public $inventorySlot;
public $hotbarSlot;
public $unknownByte;
public function decode(){
$this->eid = $this->getEntityRuntimeId();
$this->item = $this->getSlot();
$this->slot = $this->getByte();
$this->selectedSlot = $this->getByte();
$this->inventorySlot = $this->getByte();
$this->hotbarSlot = $this->getByte();
$this->unknownByte = $this->getByte();
}
@ -47,8 +47,8 @@ class MobEquipmentPacket extends DataPacket{
$this->reset();
$this->putEntityRuntimeId($this->eid);
$this->putSlot($this->item);
$this->putByte($this->slot);
$this->putByte($this->selectedSlot);
$this->putByte($this->inventorySlot);
$this->putByte($this->hotbarSlot);
$this->putByte($this->unknownByte);
}