mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
move pause-stopping patch to timepatches
This commit is contained in:
parent
9ad3f9fcaa
commit
be37a831d7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user