From 7cf8a0c0575c8f16ef7539a92c1235263c589801 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 18 Jun 2024 15:31:28 +0100 Subject: [PATCH] Updated `FixBrokenSpawnOnSandboxPatch` to account for sandbox_high map --- project/SPT.Custom/Patches/FixBrokenSpawnOnSandboxPatch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/SPT.Custom/Patches/FixBrokenSpawnOnSandboxPatch.cs b/project/SPT.Custom/Patches/FixBrokenSpawnOnSandboxPatch.cs index 89faf43..9937614 100644 --- a/project/SPT.Custom/Patches/FixBrokenSpawnOnSandboxPatch.cs +++ b/project/SPT.Custom/Patches/FixBrokenSpawnOnSandboxPatch.cs @@ -31,9 +31,9 @@ namespace SPT.Custom.Patches var playerLocation = gameWorld.MainPlayer.Location; - if (playerLocation == "Sandbox") + if (playerLocation == "Sandbox" || playerLocation == "Sandbox_high") { - LocationScene.GetAll().ToList().First(x => x.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer(); + LocationScene.GetAll().ToList().First(zone => zone.name == "ZoneSandbox").MaxPersonsOnPatrol = GetMaxPatrolValueFromServer(); } }