Bump version and adjust SteamID type handling

This commit is contained in:
Dawid Bepierszcz 2026-06-28 00:49:54 +02:00
parent a588267165
commit cf284bd121
4 changed files with 12 additions and 6 deletions

View file

@ -84,14 +84,14 @@ internal class CacheManager: IDisposable
foreach (var record in ipHistory)
{
// When we encounter a new steamid, save the previous one
if (record.Steamid != currentSteamId && currentSteamId != 0)
if ((ulong)record.Steamid != currentSteamId && currentSteamId != 0)
{
_playerIpsCache[currentSteamId] = currentIpSet;
currentIpSet = new HashSet<IpRecord>(new IpRecordComparer());
latestIpTimestamps.Clear();
}
currentSteamId = record.Steamid;
currentSteamId = (ulong)record.Steamid;
// Only keep the latest timestamp for each IP
if (!latestIpTimestamps.TryGetValue(record.Address, out var existingTimestamp) ||
@ -307,7 +307,7 @@ internal class CacheManager: IDisposable
);
_playerIpsCache.AddOrUpdate(
group.Key,
(ulong)group.Key,
_ => ipSet,
(_, existingSet) =>
{