mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Update playerskinpacket to use the strings
This commit is contained in:
@ -41,20 +41,20 @@ class PlayerSkinPacket extends DataPacket{
|
||||
/** @var string */
|
||||
public $newSkinName = "";
|
||||
/** @var string */
|
||||
public $unknownString = ""; //Sent as empty, assuming it is the old skin name
|
||||
public $oldSkinName = "";
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->uuid = $this->getUUID();
|
||||
$this->skin = $this->getSkin();
|
||||
$this->newSkinName = $this->getString();
|
||||
$this->unknownString = $this->getString();
|
||||
$this->oldSkinName = $this->getString();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putUUID($this->uuid);
|
||||
$this->putSkin($this->skin);
|
||||
$this->putString($this->newSkinName);
|
||||
$this->putString($this->unknownString);
|
||||
$this->putString($this->oldSkinName);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user