mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Fixed incorrect field names in PlayerSkinPacket
This commit is contained in:
parent
ab809f8a2b
commit
bae42dc0d9
28
src/pocketmine/entity/SkinData.php
Normal file
28
src/pocketmine/entity/SkinData.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace pocketmine\entity;
|
||||||
|
|
||||||
|
class SkinData{
|
||||||
|
|
||||||
|
}
|
@ -36,9 +36,9 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
public $skinId;
|
public $skinId;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $skinName;
|
public $newSkinName;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $serializeName;
|
public $oldSkinName;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $skinData;
|
public $skinData;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
@ -52,8 +52,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
$this->uuid = $this->getUUID();
|
$this->uuid = $this->getUUID();
|
||||||
$this->skinId = $this->getString();
|
$this->skinId = $this->getString();
|
||||||
$this->skinName = $this->getString();
|
$this->newSkinName = $this->getString();
|
||||||
$this->serializeName = $this->getString();
|
$this->oldSkinName = $this->getString();
|
||||||
$this->skinData = $this->getString();
|
$this->skinData = $this->getString();
|
||||||
$this->capeData = $this->getString();
|
$this->capeData = $this->getString();
|
||||||
$this->geometryModel = $this->getString();
|
$this->geometryModel = $this->getString();
|
||||||
@ -63,8 +63,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
$this->putUUID($this->uuid);
|
$this->putUUID($this->uuid);
|
||||||
$this->putString($this->skinId);
|
$this->putString($this->skinId);
|
||||||
$this->putString($this->skinName);
|
$this->putString($this->newSkinName);
|
||||||
$this->putString($this->serializeName);
|
$this->putString($this->oldSkinName);
|
||||||
$this->putString($this->skinData);
|
$this->putString($this->skinData);
|
||||||
$this->putString($this->capeData);
|
$this->putString($this->capeData);
|
||||||
$this->putString($this->geometryModel);
|
$this->putString($this->geometryModel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user