mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Merge master into mcpe-1.1
This commit is contained in:
@ -50,12 +50,9 @@ class LoginPacket extends DataPacket{
|
||||
|
||||
public function decode(){
|
||||
$this->protocol = $this->getInt();
|
||||
}
|
||||
|
||||
if($this->protocol !== ProtocolInfo::CURRENT_PROTOCOL){
|
||||
$this->buffer = null;
|
||||
return; //Do not attempt to decode for non-accepted protocols
|
||||
}
|
||||
|
||||
public function decodeAdditional(){
|
||||
$this->gameEdition = $this->getByte();
|
||||
|
||||
$this->setBuffer($this->getString(), 0);
|
||||
|
Reference in New Issue
Block a user