Fix error in patch, for compatibility with Escape the Dreamstalker

This commit is contained in:
Raicuparta 2022-10-27 14:42:33 +02:00
parent 9b610218df
commit a59f5c759e
2 changed files with 9 additions and 2 deletions

View File

@ -111,16 +111,23 @@ namespace NomaiVR.EffectFixes
private static void PostStartFastForwarding() private static void PostStartFastForwarding()
{ {
Locator.GetPlayerCamera().enabled = true; var camera = Locator.GetPlayerCamera();
if (camera == null) return;
camera.enabled = true;
} }
private static void PostOpenEyes() private static void PostOpenEyes()
{ {
if (instance == null) return;
instance.OpenEyes(); instance.OpenEyes();
} }
private static void PostCloseEyes(float animDuration) private static void PostCloseEyes(float animDuration)
{ {
if (instance == null) return;
instance.CloseEyesDelayed(animDuration); instance.CloseEyesDelayed(animDuration);
} }
} }

View File

@ -8,7 +8,7 @@
"title": "Before playing NomaiVR, some information:", "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.'" "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", "owmlVersion": "2.3.0",
"requireVR": true "requireVR": true
} }