mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Empty fields in PlayerSkinPacket, thanks @Minejong
This commit is contained in:
parent
d53b84386f
commit
f03bd982b5
@ -38,15 +38,23 @@ class PlayerSkinPacket extends DataPacket{
|
||||
public $uuid;
|
||||
/** @var Skin */
|
||||
public $skin;
|
||||
/** @var string */
|
||||
public $newSkinName = "";
|
||||
/** @var string */
|
||||
public $unknownString = ""; //Sent as empty, assuming it is the old skin name
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->uuid = $this->getUUID();
|
||||
$this->skin = $this->getSkin();
|
||||
$this->newSkinName = $this->getString();
|
||||
$this->unknownString = $this->getString();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putUUID($this->uuid);
|
||||
$this->putSkin($this->skin);
|
||||
$this->putString($this->newSkinName);
|
||||
$this->putString($this->unknownString);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Loading…
x
Reference in New Issue
Block a user