diff --git a/src/pocketmine/network/mcpe/protocol/LoginPacket.php b/src/pocketmine/network/mcpe/protocol/LoginPacket.php index d01692256..f828d732a 100644 --- a/src/pocketmine/network/mcpe/protocol/LoginPacket.php +++ b/src/pocketmine/network/mcpe/protocol/LoginPacket.php @@ -62,21 +62,7 @@ class LoginPacket extends DataPacket{ $this->gameEdition = $this->getByte(); - $str = $this->getString(); - - //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); + $this->setBuffer($this->getString(), 0); $chainData = json_decode($this->get($this->getLInt())); foreach($chainData->{"chain"} as $chain){ diff --git a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php index d5c71d6d6..ca0a97bdf 100644 --- a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php +++ b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php @@ -31,9 +31,9 @@ interface ProtocolInfo{ /** * Actual Minecraft: PE protocol version */ - const CURRENT_PROTOCOL = 110; - const MINECRAFT_VERSION = 'v1.1.0.5 beta'; - const MINECRAFT_VERSION_NETWORK = '1.1.0.5'; + const CURRENT_PROTOCOL = 111; + const MINECRAFT_VERSION = 'v1.1.0.8 beta'; + const MINECRAFT_VERSION_NETWORK = '1.1.0.8'; const LOGIN_PACKET = 0x01; const PLAY_STATUS_PACKET = 0x02;