NAK_CVR_Mods/Blackout/HarmonyPatches.cs
NotAKidoS e500ac2d0b clean
ran clean on it
2022-10-14 02:00:34 -05:00

19 lines
No EOL
447 B
C#

using ABI_RC.Core.Player;
using HarmonyLib;
namespace Blackout;
[HarmonyPatch]
internal class HarmonyPatches
{
//Support for changing VRMode during runtime.
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerSetup), "CalibrateAvatar")]
private static void CheckVRModeOnSwitch()
{
if (Blackout.inVR != PlayerSetup.Instance._inVr)
{
BlackoutController.Instance.SetupBlackoutInstance();
}
}
}