Updated for 1.2.0.18

This commit is contained in:
Dylan K. Taylor
2017-08-18 12:36:04 +01:00
parent 09c53552c1
commit 8853452feb
6 changed files with 24 additions and 7 deletions

View File

@ -74,6 +74,8 @@ class AdventureSettingsPacket extends DataPacket{
/** @var int */
public $playerPermission = PlayerPermissions::MEMBER;
/** @var int */
public $customFlags = 0; //...
/** @var int */
public $entityUniqueId; //This is a little-endian long, NOT a var-long. (WTF Mojang)
protected function decodePayload(){
@ -81,6 +83,7 @@ class AdventureSettingsPacket extends DataPacket{
$this->commandPermission = $this->getUnsignedVarInt();
$this->flags2 = $this->getUnsignedVarInt();
$this->playerPermission = $this->getUnsignedVarInt();
$this->customFlags = $this->getUnsignedVarInt();
$this->entityUniqueId = $this->getLLong();
}
@ -89,6 +92,7 @@ class AdventureSettingsPacket extends DataPacket{
$this->putUnsignedVarInt($this->commandPermission);
$this->putUnsignedVarInt($this->flags2);
$this->putUnsignedVarInt($this->playerPermission);
$this->putUnsignedVarInt($this->customFlags);
$this->putLLong($this->entityUniqueId);
}