just prevent pausing instead of all input

This commit is contained in:
JohnCorby 2022-11-06 16:40:31 -08:00
parent 0e7f5c3301
commit 165ae8fdaf

View File

@ -25,8 +25,8 @@ internal class TimePatches : QSBPatch
public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectController __instance) public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectController __instance)
{ {
// prevent funny thing when you pause while waking up // prevent funny thing when you pause while waking up
QSBInputManager.Instance.SetInputsEnabled(false); Locator.GetPauseCommandListener().AddPauseCommandLock();
Delay.RunWhen(() => !__instance._isOpeningEyes, () => QSBInputManager.Instance.SetInputsEnabled(true)); Delay.RunWhen(() => !__instance._isOpeningEyes, () => Locator.GetPauseCommandListener().RemovePauseCommandLock());
} }
[HarmonyPrefix] [HarmonyPrefix]