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