mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Revert "Improved handling of incompatible protocols"
This reverts commit 576702ffa9
.
This crippled plugins which use data fromm LoginPacket :S
This commit is contained in:
@ -54,9 +54,12 @@ class LoginPacket extends DataPacket{
|
||||
|
||||
public function decode(){
|
||||
$this->protocol = $this->getInt();
|
||||
}
|
||||
|
||||
public function decodeAdditional(){
|
||||
if($this->protocol !== ProtocolInfo::CURRENT_PROTOCOL){
|
||||
$this->buffer = null;
|
||||
return; //Do not attempt to decode for non-accepted protocols
|
||||
}
|
||||
|
||||
$this->gameEdition = $this->getByte();
|
||||
|
||||
$str = zlib_decode($this->getString(), 1024 * 1024 * 64);
|
||||
|
Reference in New Issue
Block a user