mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Merge branch 'release/3.2'
This commit is contained in:
commit
078a2486b5
@ -40,7 +40,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
public $newSkinName = "";
|
public $newSkinName = "";
|
||||||
/** @var Skin */
|
/** @var Skin */
|
||||||
public $skin;
|
public $skin;
|
||||||
|
/** @var bool */
|
||||||
|
public $premiumSkin = false;
|
||||||
|
|
||||||
protected function decodePayload() : void{
|
protected function decodePayload() : void{
|
||||||
$this->uuid = $this->getUUID();
|
$this->uuid = $this->getUUID();
|
||||||
@ -54,6 +55,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
$geometryData = $this->getString();
|
$geometryData = $this->getString();
|
||||||
|
|
||||||
$this->skin = new Skin($skinId, $skinData, $capeData, $geometryModel, $geometryData);
|
$this->skin = new Skin($skinId, $skinData, $capeData, $geometryModel, $geometryData);
|
||||||
|
|
||||||
|
$this->premiumSkin = $this->getBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload() : void{
|
protected function encodePayload() : void{
|
||||||
@ -66,6 +69,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
$this->putString($this->skin->getCapeData());
|
$this->putString($this->skin->getCapeData());
|
||||||
$this->putString($this->skin->getGeometryName());
|
$this->putString($this->skin->getGeometryName());
|
||||||
$this->putString($this->skin->getGeometryData());
|
$this->putString($this->skin->getGeometryData());
|
||||||
|
|
||||||
|
$this->putBool($this->premiumSkin);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(SessionHandler $handler) : bool{
|
public function handle(SessionHandler $handler) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user