Skins, protocol changes, handle split packets

This commit is contained in:
Shoghi Cervantes
2015-04-08 13:00:15 +02:00
parent c9adc336ee
commit 141c0a297e
26 changed files with 292 additions and 507 deletions

View File

@ -32,7 +32,9 @@ class LoginPacket extends DataPacket{
public $protocol1;
public $protocol2;
public $clientId;
public $loginData;
public $slim = false;
public $skin = null;
public function pid(){
return Info::LOGIN_PACKET;
@ -42,8 +44,12 @@ class LoginPacket extends DataPacket{
$this->username = $this->getString();
$this->protocol1 = $this->getInt();
$this->protocol2 = $this->getInt();
if(Info::CURRENT_PROTOCOL != $this->protocol1){
return;
}
$this->clientId = $this->getInt();
$this->loginData = $this->getString();
$this->slim = $this->getByte() > 0;
$this->skin = $this->getString();
}
public function encode(){