Fixed the spamchatmessages debug command

This commit is contained in:
Joonas Rikkonen
2017-08-03 19:29:53 +03:00
parent 264015346d
commit a86a10b177

View File

@@ -377,11 +377,11 @@ namespace Barotrauma
for (int i = 0; i < msgCount; i++)
{
if (GameMain.Client != null)
if (GameMain.Server != null)
{
GameMain.Server.SendChatMessage(ToolBox.RandomSeed(msgLength), ChatMessageType.Default);
}
else
else if (GameMain.Client != null)
{
GameMain.Client.SendChatMessage(ToolBox.RandomSeed(msgLength));
}