mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:50:45 -05:00
prevent IsEnemyPatch enemy list check fail when it's null
This commit is contained in:
parent
86d86144ba
commit
2edf259271
@ -50,7 +50,7 @@ namespace Aki.Custom.Patches
|
||||
}
|
||||
|
||||
// Check existing enemies list
|
||||
if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
|
||||
if (!__instance.Enemies.IsNullOrEmpty() && __instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
|
||||
{
|
||||
isEnemy = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user