mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
Tweak for latest experimental.
Replaced PlayerSetup _inVr check.
This commit is contained in:
parent
2b4f306040
commit
24d8c6a3ec
4 changed files with 17 additions and 17 deletions
|
@ -1,5 +1,7 @@
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using HarmonyLib;
|
||||
using MelonLoader;
|
||||
|
||||
namespace Blackout;
|
||||
|
||||
|
@ -11,9 +13,10 @@ internal class HarmonyPatches
|
|||
[HarmonyPatch(typeof(PlayerSetup), "CalibrateAvatar")]
|
||||
private static void CheckVRModeOnSwitch()
|
||||
{
|
||||
if (Blackout.inVR != PlayerSetup.Instance._inVr)
|
||||
if (Blackout.inVR != MetaPort.Instance.isUsingVr)
|
||||
{
|
||||
Blackout.inVR = PlayerSetup.Instance._inVr;
|
||||
MelonLogger.Msg("VRMode change detected! Reinitializing Blackout Instance...");
|
||||
Blackout.inVR = MetaPort.Instance.isUsingVr;
|
||||
BlackoutController.Instance.SetupBlackoutInstance();
|
||||
BlackoutController.Instance.ChangeBlackoutState(BlackoutController.BlackoutState.Awake);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue