Return empty table if we try to get ClientList in singleplayer

This commit is contained in:
EvilFactory
2023-04-01 11:40:25 -03:00
parent ca1c294c7a
commit df79d22e93

View File

@@ -13,6 +13,8 @@ namespace Barotrauma.Networking
{
get
{
if (GameMain.IsSingleplayer) { return new List<Client>(); }
#if SERVER
return GameMain.Server.ConnectedClients;
#else