Merge branch 'mcpe-1.6' into mcpe-1.6-master

This commit is contained in:
Dylan K. Taylor
2018-08-21 17:55:48 +01:00
19 changed files with 333 additions and 49 deletions

View File

@ -82,13 +82,6 @@ class LoginPacket extends DataPacket{
protected function decodePayload() : void{
$this->protocol = $this->getInt();
if($this->protocol !== ProtocolInfo::CURRENT_PROTOCOL){
if($this->protocol > 0xffff){ //guess MCPE <= 1.1
$this->offset -= 6;
$this->protocol = $this->getInt();
}
}
try{
$this->decodeConnectionRequest();
}catch(\Throwable $e){