Better BatchPacket decoding and LoginPacket handling

This commit is contained in:
Shoghi Cervantes
2015-04-15 19:30:49 +02:00
parent 81fe98d4cc
commit 7f28deefcb
3 changed files with 24 additions and 12 deletions

View File

@ -44,7 +44,7 @@ class LoginPacket extends DataPacket{
$this->username = $this->getString();
$this->protocol1 = $this->getInt();
$this->protocol2 = $this->getInt();
if(Info::CURRENT_PROTOCOL != $this->protocol1){
if($this->protocol1 < 21){ //New fields!
return;
}
$this->clientId = $this->getInt();