Rename game.maxplayers to net.max_connections, raise to 256. (#3552)

This commit is contained in:
Pieter-Jan Briers
2022-12-03 11:51:37 +01:00
committed by GitHub
parent 342d9ed2cd
commit 3f86f5f5dd
6 changed files with 31 additions and 4 deletions

View File

@@ -588,7 +588,7 @@ namespace Robust.Shared.Network
if (IsServer)
{
netConfig.SetMessageTypeEnabled(NetIncomingMessageType.ConnectionApproval, true);
netConfig.MaximumConnections = _config.GetCVar(CVars.GameMaxPlayers);
netConfig.MaximumConnections = _config.GetEffectiveMaxConnections();
}
else
{