Optimize & Fix

This commit is contained in:
Gurge44 committed 2023-11-05 14:29:16 +01:00
1 parent eda2c98370
commit 6f99d060a8
31 files changed
+768 -809

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ public static class SpamManager
if (kick || !GameStates.IsInGame) Utils.SendMessage(msg);
else
{
foreach (var pc in Main.AllPlayerControls.Where(x => x.IsAlive() == player.IsAlive()))
foreach (var pc in Main.AllPlayerControls.Where(x => x.IsAlive() == player.IsAlive()).ToArray())
Utils.SendMessage(msg, pc.PlayerId);
}
}