Shine sync don't sfx me every two minutes challenge

This commit is contained in:
Sanae 2022-03-15 00:47:51 -06:00
parent ad0a40878d
commit 7039e760db
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ server.ClientJoined += (c, _) => {
async Task ClientSyncShineBag(Client client) {
try {
foreach (int shine in shineBag.Except((ConcurrentBag<int>) client.Metadata["shineSync"]).ToArray()) {
ConcurrentBag<int> clientBag = ((ConcurrentBag<int>)client.Metadata["shineSync"]);
foreach (int shine in shineBag.Except(clientBag).ToArray()) {
clientBag.Add(shine);
await client.Send(new ShinePacket {
ShineId = shine
});