Bump version; fix bugs and refactor managers

Minor fixes
This commit is contained in:
Dawid Bepierszcz 2026-06-17 02:46:25 +02:00
parent a7ad6fce77
commit d870f23b01
7 changed files with 56 additions and 319 deletions

View file

@ -272,12 +272,12 @@ internal class CacheManager: IDisposable
if (string.IsNullOrWhiteSpace(ban.PlayerIp) ||
!IpHelper.TryConvertIpToUint(ban.PlayerIp, out var ipUInt) ||
!_ipIndex.TryGetValue(ipUInt, out var ipBans)) continue;
{
ipBans.RemoveAll(b => b.Id == id);
if (ipBans.Count == 0)
_ipIndex.TryRemove(ipUInt, out _);
}
!_ipIndex.TryGetValue(ipUInt, out var ipBans))
continue;
ipBans.RemoveAll(b => b.Id == id);
if (ipBans.Count == 0)
_ipIndex.TryRemove(ipUInt, out _);
}
}