0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:50:44 -05:00

Updated FixBrokenSpawnOnSandboxPatch to account for sandbox_high map

This commit is contained in:
Dev 2024-06-18 15:31:28 +01:00
parent ebc675b5f9
commit 7cf8a0c057

View File

@ -31,9 +31,9 @@ namespace SPT.Custom.Patches
var playerLocation = gameWorld.MainPlayer.Location;
if (playerLocation == "Sandbox")
if (playerLocation == "Sandbox" || playerLocation == "Sandbox_high")
{
LocationScene.GetAll<BotZone>().ToList().First(x => x.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer();
LocationScene.GetAll<BotZone>().ToList().First(zone => zone.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer();
}
}