Fix small issue with saving client kills multithreaded

This commit is contained in:
RaidMax 2019-08-23 19:11:36 -05:00
parent 91078eec0f
commit 652f3fb86b

View File

@ -555,6 +555,8 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
try
{
if (Plugin.Config.Configuration().StoreClientKills)
{
lock (_hitCache)
{
_hitCache.Add(hit);
@ -570,6 +572,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
_hitCache.Clear();
}
}
}
if (Plugin.Config.Configuration().EnableAntiCheat && !attacker.IsBot && attacker.ClientId != victim.ClientId)