From 846e3b6f1e308876f6f324ce90000874160893fc Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 1 Jun 2017 19:47:24 +0100 Subject: [PATCH] New fields for StartGamePacket --- src/pocketmine/network/mcpe/protocol/StartGamePacket.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php index ff6cc4b21..df2738229 100644 --- a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php +++ b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php @@ -55,6 +55,8 @@ class StartGamePacket extends DataPacket{ public $levelId = ""; //base64 string, usually the same as world folder name in vanilla public $worldName; public $premiumWorldTemplateId = ""; + public $unknownBool = false; + public $currentTick = 0; public function decode(){ $this->entityUniqueId = $this->getEntityUniqueId(); @@ -80,6 +82,8 @@ class StartGamePacket extends DataPacket{ $this->levelId = $this->getString(); $this->worldName = $this->getString(); $this->premiumWorldTemplateId = $this->getString(); + $this->unknownBool = $this->getBool(); + $this->currentTick = $this->getLLong(); } @@ -108,6 +112,8 @@ class StartGamePacket extends DataPacket{ $this->putString($this->levelId); $this->putString($this->worldName); $this->putString($this->premiumWorldTemplateId); + $this->putBool($this->unknownBool); + $this->putLLong($this->currentTick); } public function handle(NetworkSession $session) : bool{