Add levelId to StartGamePacket (previously unknown)

This commit is contained in:
Dylan K. Taylor
2016-10-29 14:29:33 +01:00
parent 0ce25f8b29
commit 293af3d55d
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}