Fixed incorrect field names in PlayerSkinPacket

This commit is contained in:
Dylan K. Taylor 2017-09-27 17:55:04 +01:00
parent ab809f8a2b
commit bae42dc0d9
2 changed files with 34 additions and 6 deletions

View 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{
}

View File

@ -36,9 +36,9 @@ class PlayerSkinPacket extends DataPacket{
/** @var string */
public $skinId;
/** @var string */
public $skinName;
public $newSkinName;
/** @var string */
public $serializeName;
public $oldSkinName;
/** @var string */
public $skinData;
/** @var string */
@ -52,8 +52,8 @@ class PlayerSkinPacket extends DataPacket{
protected function decodePayload(){
$this->uuid = $this->getUUID();
$this->skinId = $this->getString();
$this->skinName = $this->getString();
$this->serializeName = $this->getString();
$this->newSkinName = $this->getString();
$this->oldSkinName = $this->getString();
$this->skinData = $this->getString();
$this->capeData = $this->getString();
$this->geometryModel = $this->getString();
@ -63,8 +63,8 @@ class PlayerSkinPacket extends DataPacket{
protected function encodePayload(){
$this->putUUID($this->uuid);
$this->putString($this->skinId);
$this->putString($this->skinName);
$this->putString($this->serializeName);
$this->putString($this->newSkinName);
$this->putString($this->oldSkinName);
$this->putString($this->skinData);
$this->putString($this->capeData);
$this->putString($this->geometryModel);