avoid silently adding players

This commit is contained in:
ShookEagle
2025-05-26 16:36:56 -05:00
parent 9ce8893aa0
commit 2a062b0a7e

View File

@@ -65,8 +65,11 @@ public class AutoWarden(IWardenSelectionService selectionService,
if (!cachedCookies.ContainsKey(player.SteamID))
Task.Run(async () => await populateCache(player, player.SteamID));
if (cachedCookies.TryGetValue(player.SteamID, out var value) && value)
selectionService.TryEnter(player);
if (!cachedCookies.TryGetValue(player.SteamID, out var value) || !value)
continue;
if (selectionService.TryEnter(player)) {
locale.JoinRaffle.ToChat(player);
}
}
});
return HookResult.Continue;