mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Protocol changes for 1.12.0.28
This commit is contained in:
@ -42,6 +42,10 @@ class ResourcePackDataInfoPacket extends DataPacket{
|
||||
public $compressedPackSize;
|
||||
/** @var string */
|
||||
public $sha256;
|
||||
/** @var bool */
|
||||
public $isPremium = false;
|
||||
/** @var int */
|
||||
public $packType = 0; //TODO: check the values for this
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->packId = $this->getString();
|
||||
@ -49,6 +53,8 @@ class ResourcePackDataInfoPacket extends DataPacket{
|
||||
$this->chunkCount = $this->getLInt();
|
||||
$this->compressedPackSize = $this->getLLong();
|
||||
$this->sha256 = $this->getString();
|
||||
$this->isPremium = $this->getBool();
|
||||
$this->packType = $this->getByte();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
@ -57,6 +63,8 @@ class ResourcePackDataInfoPacket extends DataPacket{
|
||||
$this->putLInt($this->chunkCount);
|
||||
$this->putLLong($this->compressedPackSize);
|
||||
$this->putString($this->sha256);
|
||||
$this->putBool($this->isPremium);
|
||||
$this->putByte($this->packType);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user