From 834d0c38c659d90776acf1498056256ef7fbfab0 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 15 Aug 2022 15:05:11 -0700 Subject: [PATCH] put this back --- QSB/TimeSync/Patches/TimePatches.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/QSB/TimeSync/Patches/TimePatches.cs b/QSB/TimeSync/Patches/TimePatches.cs index 443514e9..493f237b 100644 --- a/QSB/TimeSync/Patches/TimePatches.cs +++ b/QSB/TimeSync/Patches/TimePatches.cs @@ -12,6 +12,14 @@ internal class TimePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; + /// + /// prevents wakeup prompt since we automatically wake you up. + /// (doesn't happen for host because we don't patch until TimeLoop._initialized I.E. after Start) + /// + [HarmonyPrefix] + [HarmonyPatch(typeof(PlayerCameraEffectController), nameof(PlayerCameraEffectController.OnStartOfTimeLoop))] + public static bool PlayerCameraEffectController_OnStartOfTimeLoop() => false; + [HarmonyPostfix] [HarmonyPatch(typeof(PlayerCameraEffectController), nameof(PlayerCameraEffectController.WakeUp))] public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectController __instance)