Fixed Map being broken again after dying

This commit is contained in:
Arturs Ziborovs 2023-10-23 02:32:01 +03:00
parent 2092a9f724
commit 159032dd84

View file

@ -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