Some cleanup to player net session handling for connect/disconnect

This commit is contained in:
Dylan K. Taylor
2019-03-14 14:32:27 +00:00
parent fa7a4dc22e
commit 26a5d97499
8 changed files with 187 additions and 80 deletions

View File

@ -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 ?