RakLibInterface: fixed server being unjoinable if gamemode is Spectator

closes #4069
this happens because the client bans any server that has an invalid pong, which is very stupid in this case because the gamemode isn't even shown on the UI anyway ...
This commit is contained in:
Dylan K. Taylor 2021-03-14 20:35:17 +00:00
parent 9e27c47116
commit edcf296086
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -212,7 +212,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$info->getMaxPlayerCount(),
$this->rakLib->getServerId(),
$this->server->getName(),
Server::getGamemodeName($this->server->getGamemode())
Server::getGamemodeName(Player::getClientFriendlyGamemode($this->server->getGamemode()))
]) . ";"
);
}