mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +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)
|
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]
|
||||||
|
Loading…
Reference in New Issue
Block a user