diff --git a/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php b/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php index 1b92810a9..ddade3bb2 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php @@ -60,12 +60,8 @@ class PlayerListPacket extends DataPacket{ $entry->platform = $this->getVarInt(); $skinId = $this->getString(); - $this->getLInt(); //always 1 $skinData = $this->getString(); - $capeData = ""; - if($this->getLInt() !== 0){ - $capeData = $this->getString(); - } + $capeData = $this->getString(); $geometryName = $this->getString(); $geometryData = $this->getString(); @@ -97,17 +93,8 @@ class PlayerListPacket extends DataPacket{ $this->putString($entry->thirdPartyName); $this->putVarInt($entry->platform); $this->putString($entry->skin->getSkinId()); - - $this->putLInt(1); $this->putString($entry->skin->getSkinData()); - - $capeData = $entry->skin->getCapeData(); - if($capeData !== ""){ - $this->putLInt(1); - $this->putString($capeData); - }else{ - $this->putLInt(0); - } + $this->putString($entry->skin->getCapeData()); $this->putString($entry->skin->getGeometryName()); $this->putString($entry->skin->getGeometryData()); $this->putString($entry->xboxUserId); diff --git a/src/pocketmine/network/mcpe/protocol/PlayerSkinPacket.php b/src/pocketmine/network/mcpe/protocol/PlayerSkinPacket.php index 165d16d7d..2fa531419 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayerSkinPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayerSkinPacket.php @@ -48,15 +48,8 @@ class PlayerSkinPacket extends DataPacket{ $skinId = $this->getString(); $this->newSkinName = $this->getString(); $this->oldSkinName = $this->getString(); - - $this->getLInt(); //always 1 - $this->getLInt(); //length, unneeded $skinData = $this->getString(); - - $this->getLInt(); //0 if there's no cape, 1 if there is - $this->getLInt(); //length, again unneeded. $capeData = $this->getString(); - $geometryModel = $this->getString(); $geometryData = $this->getString(); @@ -69,17 +62,8 @@ class PlayerSkinPacket extends DataPacket{ $this->putString($this->skin->getSkinId()); $this->putString($this->newSkinName); $this->putString($this->oldSkinName); - - $skinData = $this->skin->getSkinData(); - $this->putLInt(1); - $this->putLInt(strlen($skinData)); - $this->putString($skinData); - - $capeData = $this->skin->getCapeData(); - $this->putLInt($capeData !== "" ? 1 : 0); - $this->putLInt(strlen($capeData)); - $this->putString($capeData); - + $this->putString($this->skin->getSkinData()); + $this->putString($this->skin->getCapeData()); $this->putString($this->skin->getGeometryName()); $this->putString($this->skin->getGeometryData()); } diff --git a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php index 2be3ef491..8fd94193f 100644 --- a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php +++ b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php @@ -39,15 +39,15 @@ interface ProtocolInfo{ /** * Actual Minecraft: PE protocol version */ - public const CURRENT_PROTOCOL = 200; + public const CURRENT_PROTOCOL = 220; /** * Current Minecraft PE version reported by the server. This is usually the earliest currently supported version. */ - public const MINECRAFT_VERSION = 'v1.2.10.1 beta'; + public const MINECRAFT_VERSION = 'v1.2.13.5 beta'; /** * Version number sent to clients in ping responses. */ - public const MINECRAFT_VERSION_NETWORK = '1.2.10.1'; + public const MINECRAFT_VERSION_NETWORK = '1.2.13.5'; public const LOGIN_PACKET = 0x01; public const PLAY_STATUS_PACKET = 0x02;