network crash fixes
This commit is contained in:
@@ -19,6 +19,7 @@ namespace Game
|
||||
|
||||
public static bool StartServer(bool listenServer = true)
|
||||
{
|
||||
Cleanup();
|
||||
ConnectedClients = new List<NetworkConnection>(MaximumClients);
|
||||
|
||||
|
||||
@@ -78,6 +79,7 @@ namespace Game
|
||||
foreach (Type type in NetworkedTypes)
|
||||
Console.Print("tracking networked type: " + type.Name);
|
||||
#endif
|
||||
GameModeManager.Init();
|
||||
|
||||
if (listenServer)
|
||||
return ConnectServer(listenServer: true);
|
||||
|
||||
Reference in New Issue
Block a user