mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Silence unread buffer assertion on incompatible protocol
This commit is contained in:
parent
28baae8154
commit
cf83143bbd
@ -44,6 +44,7 @@ class LoginPacket extends DataPacket{
|
||||
$this->protocol = $this->getInt();
|
||||
|
||||
if($this->protocol !== Info::CURRENT_PROTOCOL){
|
||||
$this->buffer = null;
|
||||
return; //Do not attempt to decode for non-accepted protocols
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user