mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
19 lines
581 B
C#
19 lines
581 B
C#
|
using QSB.Patches;
|
|||
|
|
|||
|
namespace QSB.TimeSync.Patches
|
|||
|
{
|
|||
|
class TimePatches : QSBPatch
|
|||
|
{
|
|||
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|||
|
|
|||
|
public override void DoPatches()
|
|||
|
=> QSBCore.HarmonyHelper.AddPrefix<PlayerCameraEffectController>("OnStartOfTimeLoop", typeof(TimePatches), nameof(PlayerCameraEffectController_OnStartOfTimeLoop));
|
|||
|
|
|||
|
public override void DoUnpatches()
|
|||
|
=> QSBCore.HarmonyHelper.Unpatch<PlayerCameraEffectController>("OnStartOfTimeLoop");
|
|||
|
|
|||
|
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
|
|||
|
=> false;
|
|||
|
}
|
|||
|
}
|