From 293af3d55dccf0dffbbb06370f130a62102db3d5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 29 Oct 2016 14:29:33 +0100 Subject: [PATCH] Add levelId to StartGamePacket (previously unknown) --- src/pocketmine/Player.php | 2 +- src/pocketmine/network/protocol/StartGamePacket.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 17ef649a5..0cfb3feff 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1702,7 +1702,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade $pk->rainLevel = 0; //TODO: implement these properly $pk->lightningLevel = 0; $pk->commandsEnabled = 1; - $pk->unknown = "UNKNOWN"; + $pk->levelId = ""; $pk->worldName = $this->server->getMotd(); $this->dataPacket($pk); diff --git a/src/pocketmine/network/protocol/StartGamePacket.php b/src/pocketmine/network/protocol/StartGamePacket.php index 0081d2815..6ad4ef425 100644 --- a/src/pocketmine/network/protocol/StartGamePacket.php +++ b/src/pocketmine/network/protocol/StartGamePacket.php @@ -47,7 +47,7 @@ class StartGamePacket extends DataPacket{ public $lightningLevel; public $commandsEnabled; public $isTexturePacksRequired = 0; - public $unknown; + public $levelId = ""; //base64 string, usually the same as world folder name in vanilla public $worldName; public function decode(){ @@ -74,7 +74,7 @@ class StartGamePacket extends DataPacket{ $this->putLFloat($this->lightningLevel); $this->putBool($this->commandsEnabled); $this->putBool($this->isTexturePacksRequired); - $this->putString($this->unknown); + $this->putString($this->levelId); $this->putString($this->worldName); }