From a59f5c759e6150b4e1ea7593aeea7160c5a2be2b Mon Sep 17 00:00:00 2001 From: Raicuparta Date: Thu, 27 Oct 2022 14:42:33 +0200 Subject: [PATCH] Fix error in patch, for compatibility with Escape the Dreamstalker --- NomaiVR/EffectFixes/CameraMaskFix.cs | 9 ++++++++- NomaiVR/manifest.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/NomaiVR/EffectFixes/CameraMaskFix.cs b/NomaiVR/EffectFixes/CameraMaskFix.cs index 06dbdef..0f95d71 100644 --- a/NomaiVR/EffectFixes/CameraMaskFix.cs +++ b/NomaiVR/EffectFixes/CameraMaskFix.cs @@ -111,16 +111,23 @@ namespace NomaiVR.EffectFixes private static void PostStartFastForwarding() { - Locator.GetPlayerCamera().enabled = true; + var camera = Locator.GetPlayerCamera(); + if (camera == null) return; + + camera.enabled = true; } private static void PostOpenEyes() { + if (instance == null) return; + instance.OpenEyes(); } private static void PostCloseEyes(float animDuration) { + if (instance == null) return; + instance.CloseEyesDelayed(animDuration); } } diff --git a/NomaiVR/manifest.json b/NomaiVR/manifest.json index a124042..703afc7 100644 --- a/NomaiVR/manifest.json +++ b/NomaiVR/manifest.json @@ -8,7 +8,7 @@ "title": "Before playing NomaiVR, some information:", "body": "- Click the NomaiVR readme button in the Mod Manager for information about troubleshooting, requirements, performance, how to uninstall, etc.\n\n- Some VR controllers will have missing icons. Message us if you want to help us add icons for these devices.\n\n- If you have the game on Steam:\n--- Right-click Outer Wilds on your Steam library\n--- Select 'Properties...'\n--- Disable 'Use Desktop Game Theatre.'" }, - "version": "2.8.4", + "version": "2.8.6", "owmlVersion": "2.3.0", "requireVR": true }