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:
parent
ad0a40878d
commit
7039e760db
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue