mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Add levelId to StartGamePacket (previously unknown)
This commit is contained in:
parent
0ce25f8b29
commit
293af3d55d
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user