Merge master into mcpe-1.1

This commit is contained in:
Dylan K. Taylor
2017-05-14 16:42:42 +01:00
3 changed files with 30 additions and 20 deletions

View File

@ -50,12 +50,9 @@ class LoginPacket extends DataPacket{
public function decode(){
$this->protocol = $this->getInt();
}
if($this->protocol !== ProtocolInfo::CURRENT_PROTOCOL){
$this->buffer = null;
return; //Do not attempt to decode for non-accepted protocols
}
public function decodeAdditional(){
$this->gameEdition = $this->getByte();
$this->setBuffer($this->getString(), 0);