mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
New fields for StartGamePacket
This commit is contained in:
parent
0e525ac1c3
commit
846e3b6f1e
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user