mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
New skin API, add support for custom capes & custom geometry (#1416)
* Added support for changing skins ingame, custom capes & geometry * Use PlayerSkinPacket for setting Human skin instead of PlayerList hack
This commit is contained in:
@ -48,11 +48,6 @@ class LoginPacket extends DataPacket{
|
||||
/** @var string */
|
||||
public $serverAddress;
|
||||
|
||||
/** @var string */
|
||||
public $skinId;
|
||||
/** @var string */
|
||||
public $skin = "";
|
||||
|
||||
/** @var array (the "chain" index contains one or more JWTs) */
|
||||
public $chainData = [];
|
||||
/** @var string */
|
||||
@ -102,11 +97,6 @@ class LoginPacket extends DataPacket{
|
||||
|
||||
$this->clientId = $this->clientData["ClientRandomId"] ?? null;
|
||||
$this->serverAddress = $this->clientData["ServerAddress"] ?? null;
|
||||
$this->skinId = $this->clientData["SkinId"] ?? null;
|
||||
|
||||
if(isset($this->clientData["SkinData"])){
|
||||
$this->skin = base64_decode($this->clientData["SkinData"]);
|
||||
}
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
|
Reference in New Issue
Block a user