mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
fix skins on 1.2.13.5
this is not the full changeset and more things are needed!
This commit is contained in:
parent
fc795b80ae
commit
c81f178cdb
@ -60,12 +60,8 @@ class PlayerListPacket extends DataPacket{
|
|||||||
$entry->platform = $this->getVarInt();
|
$entry->platform = $this->getVarInt();
|
||||||
|
|
||||||
$skinId = $this->getString();
|
$skinId = $this->getString();
|
||||||
$this->getLInt(); //always 1
|
|
||||||
$skinData = $this->getString();
|
$skinData = $this->getString();
|
||||||
$capeData = "";
|
$capeData = $this->getString();
|
||||||
if($this->getLInt() !== 0){
|
|
||||||
$capeData = $this->getString();
|
|
||||||
}
|
|
||||||
$geometryName = $this->getString();
|
$geometryName = $this->getString();
|
||||||
$geometryData = $this->getString();
|
$geometryData = $this->getString();
|
||||||
|
|
||||||
@ -97,17 +93,8 @@ class PlayerListPacket extends DataPacket{
|
|||||||
$this->putString($entry->thirdPartyName);
|
$this->putString($entry->thirdPartyName);
|
||||||
$this->putVarInt($entry->platform);
|
$this->putVarInt($entry->platform);
|
||||||
$this->putString($entry->skin->getSkinId());
|
$this->putString($entry->skin->getSkinId());
|
||||||
|
|
||||||
$this->putLInt(1);
|
|
||||||
$this->putString($entry->skin->getSkinData());
|
$this->putString($entry->skin->getSkinData());
|
||||||
|
$this->putString($entry->skin->getCapeData());
|
||||||
$capeData = $entry->skin->getCapeData();
|
|
||||||
if($capeData !== ""){
|
|
||||||
$this->putLInt(1);
|
|
||||||
$this->putString($capeData);
|
|
||||||
}else{
|
|
||||||
$this->putLInt(0);
|
|
||||||
}
|
|
||||||
$this->putString($entry->skin->getGeometryName());
|
$this->putString($entry->skin->getGeometryName());
|
||||||
$this->putString($entry->skin->getGeometryData());
|
$this->putString($entry->skin->getGeometryData());
|
||||||
$this->putString($entry->xboxUserId);
|
$this->putString($entry->xboxUserId);
|
||||||
|
@ -48,15 +48,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
$skinId = $this->getString();
|
$skinId = $this->getString();
|
||||||
$this->newSkinName = $this->getString();
|
$this->newSkinName = $this->getString();
|
||||||
$this->oldSkinName = $this->getString();
|
$this->oldSkinName = $this->getString();
|
||||||
|
|
||||||
$this->getLInt(); //always 1
|
|
||||||
$this->getLInt(); //length, unneeded
|
|
||||||
$skinData = $this->getString();
|
$skinData = $this->getString();
|
||||||
|
|
||||||
$this->getLInt(); //0 if there's no cape, 1 if there is
|
|
||||||
$this->getLInt(); //length, again unneeded.
|
|
||||||
$capeData = $this->getString();
|
$capeData = $this->getString();
|
||||||
|
|
||||||
$geometryModel = $this->getString();
|
$geometryModel = $this->getString();
|
||||||
$geometryData = $this->getString();
|
$geometryData = $this->getString();
|
||||||
|
|
||||||
@ -69,17 +62,8 @@ class PlayerSkinPacket extends DataPacket{
|
|||||||
$this->putString($this->skin->getSkinId());
|
$this->putString($this->skin->getSkinId());
|
||||||
$this->putString($this->newSkinName);
|
$this->putString($this->newSkinName);
|
||||||
$this->putString($this->oldSkinName);
|
$this->putString($this->oldSkinName);
|
||||||
|
$this->putString($this->skin->getSkinData());
|
||||||
$skinData = $this->skin->getSkinData();
|
$this->putString($this->skin->getCapeData());
|
||||||
$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->getGeometryName());
|
$this->putString($this->skin->getGeometryName());
|
||||||
$this->putString($this->skin->getGeometryData());
|
$this->putString($this->skin->getGeometryData());
|
||||||
}
|
}
|
||||||
|
@ -39,15 +39,15 @@ interface ProtocolInfo{
|
|||||||
/**
|
/**
|
||||||
* Actual Minecraft: PE protocol version
|
* 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.
|
* 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.
|
* 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 LOGIN_PACKET = 0x01;
|
||||||
public const PLAY_STATUS_PACKET = 0x02;
|
public const PLAY_STATUS_PACKET = 0x02;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user