Updated for .13.1. skinName replaces isSlim, API bump

This commit is contained in:
Intyre
2015-12-16 14:37:46 +01:00
parent 2ddc4455c5
commit 90c3e66e6b
6 changed files with 24 additions and 26 deletions

View File

@ -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();
}

View File

@ -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]);