Return empty table if we try to get ClientList in singleplayer
This commit is contained in:
@@ -13,6 +13,8 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
get
|
||||
{
|
||||
if (GameMain.IsSingleplayer) { return new List<Client>(); }
|
||||
|
||||
#if SERVER
|
||||
return GameMain.Server.ConnectedClients;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user