move pause-stopping patch to timepatches

This commit is contained in:
Mister_Nebula 2021-08-26 14:56:07 +01:00
parent 9ad3f9fcaa
commit be37a831d7
2 changed files with 4 additions and 4 deletions

View File

@ -117,9 +117,6 @@ namespace QSB
Helper.HarmonyHelper.EmptyMethod<ModCommandListener>("Update");
// Stop players being able to pause
Helper.HarmonyHelper.EmptyMethod(typeof(OWTime).GetMethod("Pause"));
QSBPatchManager.OnPatchType += OnPatchType;
QSBPatchManager.OnUnpatchType += OnUnpatchType;
}

View File

@ -7,7 +7,10 @@ namespace QSB.TimeSync.Patches
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
public override void DoPatches()
=> Prefix(nameof(PlayerCameraEffectController_OnStartOfTimeLoop));
{
Prefix(nameof(PlayerCameraEffectController_OnStartOfTimeLoop));
Empty("OWTime_Pause");
}
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
=> false;