From 159032dd840e5eb4f11d9bd780214f1d2f80ecfc Mon Sep 17 00:00:00 2001 From: Arturs Ziborovs Date: Mon, 23 Oct 2023 02:32:01 +0300 Subject: [PATCH] Fixed Map being broken again after dying --- SRMP/Patches/Patch_PauseFix.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SRMP/Patches/Patch_PauseFix.cs b/SRMP/Patches/Patch_PauseFix.cs index 26d1f81..13d4105 100644 --- a/SRMP/Patches/Patch_PauseFix.cs +++ b/SRMP/Patches/Patch_PauseFix.cs @@ -57,6 +57,17 @@ namespace SRMultiplayer.Patches } } + [HarmonyPatch(typeof(MapUI))] + [HarmonyPatch("OpenMap")] + class FIX_MapUI_OpenMap + { + static void Postfix(MapUI __instance) + { + // Fix input mode not refreshing after dying + SRInput.instance.SetInputMode(SRInput.InputMode.PAUSE); + } + } + [HarmonyPatch(typeof(vp_FPInput))] [HarmonyPatch("Update")] class FIX_FPInput_Pause