mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +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();
|
$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){
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user