0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00

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

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
});