mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Bump for 1.1.0.8 and removed LoginPacket zlib hack
This commit is contained in:
parent
db4027cdb2
commit
fcff6961a8
@ -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){
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user