Found an unknown field in StartGamePacket

This commit is contained in:
Dylan K. Taylor 2017-08-16 10:10:42 +01:00
parent 9be1b929a5
commit 5fc50aeda5

View File

@ -108,7 +108,7 @@ class StartGamePacket extends DataPacket{
/** @var int */ /** @var int */
public $currentTick = 0; public $currentTick = 0;
/** @var int */ /** @var int */
public $unknownVarInt = 0; public $enchantmentSeed = 0;
protected function decodePayload(){ protected function decodePayload(){
$this->entityUniqueId = $this->getEntityUniqueId(); $this->entityUniqueId = $this->getEntityUniqueId();
@ -150,7 +150,7 @@ class StartGamePacket extends DataPacket{
$this->unknownBool = $this->getBool(); $this->unknownBool = $this->getBool();
$this->currentTick = $this->getLLong(); $this->currentTick = $this->getLLong();
$this->unknownVarInt = $this->getVarInt(); $this->enchantmentSeed = $this->getVarInt();
} }
protected function encodePayload(){ protected function encodePayload(){
@ -193,7 +193,7 @@ class StartGamePacket extends DataPacket{
$this->putBool($this->unknownBool); $this->putBool($this->unknownBool);
$this->putLLong($this->currentTick); $this->putLLong($this->currentTick);
$this->putVarInt($this->unknownVarInt); $this->putVarInt($this->enchantmentSeed);
} }
public function handle(NetworkSession $session) : bool{ public function handle(NetworkSession $session) : bool{