Bump for 1.1.0.8 and removed LoginPacket zlib hack

This commit is contained in:
Dylan K. Taylor 2017-04-22 11:10:13 +01:00
parent db4027cdb2
commit fcff6961a8
2 changed files with 4 additions and 18 deletions

View File

@ -62,21 +62,7 @@ class LoginPacket extends DataPacket{
$this->gameEdition = $this->getByte(); $this->gameEdition = $this->getByte();
$str = $this->getString(); $this->setBuffer($this->getString(), 0);
//TODO: remove this hack once the protocol gets bumped
if($str{0} === "\x78"){
try{
$str = zlib_decode($str, 1024 * 1024 * 64);
$this->protocol = 0;
$this->buffer = null; // <= 1.1.0.4
return;
}catch(\ErrorException $e){
// >= 1.1.0.5
}
}
$this->setBuffer($str, 0);
$chainData = json_decode($this->get($this->getLInt())); $chainData = json_decode($this->get($this->getLInt()));
foreach($chainData->{"chain"} as $chain){ foreach($chainData->{"chain"} as $chain){

View File

@ -31,9 +31,9 @@ interface ProtocolInfo{
/** /**
* Actual Minecraft: PE protocol version * Actual Minecraft: PE protocol version
*/ */
const CURRENT_PROTOCOL = 110; const CURRENT_PROTOCOL = 111;
const MINECRAFT_VERSION = 'v1.1.0.5 beta'; const MINECRAFT_VERSION = 'v1.1.0.8 beta';
const MINECRAFT_VERSION_NETWORK = '1.1.0.5'; const MINECRAFT_VERSION_NETWORK = '1.1.0.8';
const LOGIN_PACKET = 0x01; const LOGIN_PACKET = 0x01;
const PLAY_STATUS_PACKET = 0x02; const PLAY_STATUS_PACKET = 0x02;