mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 22:59:59 +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 $levelId = ""; //base64 string, usually the same as world folder name in vanilla
|
||||||
public $worldName;
|
public $worldName;
|
||||||
public $premiumWorldTemplateId = "";
|
public $premiumWorldTemplateId = "";
|
||||||
|
public $unknownBool = false;
|
||||||
|
public $currentTick = 0;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->entityUniqueId = $this->getEntityUniqueId();
|
$this->entityUniqueId = $this->getEntityUniqueId();
|
||||||
@ -80,6 +82,8 @@ class StartGamePacket extends DataPacket{
|
|||||||
$this->levelId = $this->getString();
|
$this->levelId = $this->getString();
|
||||||
$this->worldName = $this->getString();
|
$this->worldName = $this->getString();
|
||||||
$this->premiumWorldTemplateId = $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->levelId);
|
||||||
$this->putString($this->worldName);
|
$this->putString($this->worldName);
|
||||||
$this->putString($this->premiumWorldTemplateId);
|
$this->putString($this->premiumWorldTemplateId);
|
||||||
|
$this->putBool($this->unknownBool);
|
||||||
|
$this->putLLong($this->currentTick);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(NetworkSession $session) : bool{
|
public function handle(NetworkSession $session) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user