mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Some cleanup to player net session handling for connect/disconnect
This commit is contained in:
@ -45,6 +45,8 @@ class LoginSessionHandler extends SessionHandler{
|
||||
}
|
||||
|
||||
public function handleLogin(LoginPacket $packet) : bool{
|
||||
$this->session->setPlayerInfo($packet->playerInfo);
|
||||
|
||||
if(!$this->isCompatibleProtocol($packet->protocol)){
|
||||
$pk = new PlayStatusPacket();
|
||||
$pk->status = $packet->protocol < ProtocolInfo::CURRENT_PROTOCOL ?
|
||||
|
Reference in New Issue
Block a user