mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Updated for .13.1. skinName replaces isSlim, API bump
This commit is contained in:
@ -36,7 +36,7 @@ class LoginPacket extends DataPacket{
|
||||
public $serverAddress;
|
||||
public $clientSecret;
|
||||
|
||||
public $slim = false;
|
||||
public $skinName;
|
||||
public $skin = null;
|
||||
|
||||
public function decode(){
|
||||
@ -52,8 +52,7 @@ class LoginPacket extends DataPacket{
|
||||
$this->serverAddress = $this->getString();
|
||||
$this->clientSecret = $this->getString();
|
||||
|
||||
$this->slim = $this->getByte() > 0;
|
||||
$this->getByte(); // TODO: skin transparency, experimental or not?
|
||||
$this->skinName = $this->getString();
|
||||
$this->skin = $this->getString();
|
||||
}
|
||||
|
||||
|
@ -53,8 +53,7 @@ class PlayerListPacket extends DataPacket{
|
||||
$this->putUUID($d[0]);
|
||||
$this->putLong($d[1]);
|
||||
$this->putString($d[2]);
|
||||
$this->putByte($d[3] ? 1 : 0);
|
||||
$this->putByte(0); // TODO: skin transparency, experimental or not?
|
||||
$this->putString($d[3]);
|
||||
$this->putString($d[4]);
|
||||
}else{
|
||||
$this->putUUID($d[0]);
|
||||
|
Reference in New Issue
Block a user