From 5fc50aeda5f87c6c99d9977dcf81ce2768b8e963 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 16 Aug 2017 10:10:42 +0100 Subject: [PATCH] Found an unknown field in StartGamePacket --- src/pocketmine/network/mcpe/protocol/StartGamePacket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php index c503c8d996..7abf1c8f83 100644 --- a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php +++ b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php @@ -108,7 +108,7 @@ class StartGamePacket extends DataPacket{ /** @var int */ public $currentTick = 0; /** @var int */ - public $unknownVarInt = 0; + public $enchantmentSeed = 0; protected function decodePayload(){ $this->entityUniqueId = $this->getEntityUniqueId(); @@ -150,7 +150,7 @@ class StartGamePacket extends DataPacket{ $this->unknownBool = $this->getBool(); $this->currentTick = $this->getLLong(); - $this->unknownVarInt = $this->getVarInt(); + $this->enchantmentSeed = $this->getVarInt(); } protected function encodePayload(){ @@ -193,7 +193,7 @@ class StartGamePacket extends DataPacket{ $this->putBool($this->unknownBool); $this->putLLong($this->currentTick); - $this->putVarInt($this->unknownVarInt); + $this->putVarInt($this->enchantmentSeed); } public function handle(NetworkSession $session) : bool{