mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Fixed 1.5.0 PlayerSkinPacket protocol change that somehow disappeared
I am 100% sure I committed this change, but it isn't in the merge...
This commit is contained in:
parent
974583a853
commit
a8811ab2b3
@ -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(){
|
protected function decodePayload(){
|
||||||
$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(){
|
protected function encodePayload(){
|
||||||
@ -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(NetworkSession $session) : bool{
|
public function handle(NetworkSession $session) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user