mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 00:39:53 +00:00
put this back
This commit is contained in:
parent
ff3ca4b3d0
commit
834d0c38c6
@ -12,6 +12,14 @@ internal class TimePatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
/// <summary>
|
||||
/// 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)
|
||||
/// </summary>
|
||||
[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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user