From 0dbcd5e76494a4baf8c72a813e7b97045d9e1e2e Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 6 Jan 2025 17:35:35 +0000 Subject: [PATCH] harden method against client changes --- .../Patches/MainMenu/ForceRaidModeToLocalPatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/ForceRaidModeToLocalPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/ForceRaidModeToLocalPatch.cs index f73c500..825d7bd 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/ForceRaidModeToLocalPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/ForceRaidModeToLocalPatch.cs @@ -8,6 +8,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu /// /// This patch ensures that the gamemode is always and that IsPveOffline is always true when starting a game
/// This prevents a bug where the gameworld is instantiated as an online world + /// One outcome of not having this patch is grenades do not explode after being thrown ///
public class ForceRaidModeToLocalPatch : ModulePatch { @@ -17,7 +18,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - public static void Prefix(ref RaidSettings ____raidSettings) + public static void Prefix(ref RaidSettings ____raidSettings, bool canEscape) { ____raidSettings.RaidMode = ERaidMode.Local; ____raidSettings.IsPveOffline = true;