mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
just prevent pausing instead of all input
This commit is contained in:
parent
0e7f5c3301
commit
165ae8fdaf
@ -25,8 +25,8 @@ internal class TimePatches : QSBPatch
|
||||
public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectController __instance)
|
||||
{
|
||||
// prevent funny thing when you pause while waking up
|
||||
QSBInputManager.Instance.SetInputsEnabled(false);
|
||||
Delay.RunWhen(() => !__instance._isOpeningEyes, () => QSBInputManager.Instance.SetInputsEnabled(true));
|
||||
Locator.GetPauseCommandListener().AddPauseCommandLock();
|
||||
Delay.RunWhen(() => !__instance._isOpeningEyes, () => Locator.GetPauseCommandListener().RemovePauseCommandLock());
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
|
Loading…
Reference in New Issue
Block a user