Protocol changes for 1.6.0.1

This commit is contained in:
Dylan K. Taylor
2018-06-15 19:24:23 +01:00
parent 6fce2b3349
commit 986077e03c
15 changed files with 266 additions and 42 deletions

View File

@ -79,13 +79,6 @@ class LoginPacket extends DataPacket{
protected function decodePayload(){
$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){