0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Small optimization

This commit is contained in:
Kaeno 2024-03-17 16:00:40 +00:00
parent de325c8b0d
commit b1e1841311

View File

@ -6,7 +6,6 @@ using HarmonyLib;
using Newtonsoft.Json;
using System.Linq;
using System.Reflection;
using UnityEngine;
namespace Aki.Custom.Patches
{
@ -34,7 +33,7 @@ namespace Aki.Custom.Patches
if (playerLocation == "Sandbox")
{
Object.FindObjectsOfType<BotZone>().ToList().First(x => x.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer();
LocationScene.GetAll<BotZone>().ToList().First(x => x.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer();
}
}