mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
ResourcePackStack: missing field
This commit is contained in:
parent
7fcd40df15
commit
38c759c86e
@ -44,6 +44,8 @@ class ResourcePackStackPacket extends DataPacket{
|
|||||||
|
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
public $isExperimental = false;
|
public $isExperimental = false;
|
||||||
|
/** @var string */
|
||||||
|
public $baseGameVersion = ProtocolInfo::MINECRAFT_VERSION_NETWORK;
|
||||||
|
|
||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
$this->mustAccept = $this->getBool();
|
$this->mustAccept = $this->getBool();
|
||||||
@ -62,6 +64,7 @@ class ResourcePackStackPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->isExperimental = $this->getBool();
|
$this->isExperimental = $this->getBool();
|
||||||
|
$this->baseGameVersion = $this->getString();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
@ -82,6 +85,7 @@ class ResourcePackStackPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->putBool($this->isExperimental);
|
$this->putBool($this->isExperimental);
|
||||||
|
$this->putString($this->baseGameVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(NetworkSession $session) : bool{
|
public function handle(NetworkSession $session) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user