mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-21 18:55:17 +00:00
ContainsKey is a method
This commit is contained in:
parent
4dcfa2f4e6
commit
e64c922966
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ server.ClientJoined += (c, _) => {
|
|||
c.Metadata["loadedSave"] = false;
|
||||
c.Metadata["scenario"] = 0;
|
||||
c.Metadata["2d"] = false;
|
||||
foreach (Client client in server.Clients.Where(client => client.Metadata["lastGamePacket"] != null).ToArray()) {
|
||||
foreach (Client client in server.Clients.Where(client => client.Metadata.ContainsKey("lastGamePacket")).ToArray()) {
|
||||
try {
|
||||
Task.WaitAll(c.Send((GamePacket) client.Metadata["lastGamePacket"]!, client));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue