Fixed unauthenticated sessions taking up player slots

This commit is contained in:
Dylan K. Taylor
2022-12-28 20:42:33 +00:00
parent 5d2b0acfc8
commit 59be901efe
4 changed files with 29 additions and 2 deletions

View File

@ -229,6 +229,7 @@ class NetworkSession{
$this->info = $info;
$this->logger->info("Player: " . TextFormat::AQUA . $info->getUsername() . TextFormat::RESET);
$this->logger->setPrefix($this->getLogPrefix());
$this->manager->markLoginReceived($this);
},
function(bool $isAuthenticated, bool $authRequired, ?string $error, ?string $clientPubKey) : void{
$this->setAuthenticationStatus($isAuthenticated, $authRequired, $error, $clientPubKey);