Skip to content

Commit a59f5c7

Browse files
committed
Fix error in patch, for compatibility with Escape the Dreamstalker
1 parent 9b61021 commit a59f5c7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

NomaiVR/EffectFixes/CameraMaskFix.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,23 @@ public override void ApplyPatches()
111111

112112
private static void PostStartFastForwarding()
113113
{
114-
Locator.GetPlayerCamera().enabled = true;
114+
var camera = Locator.GetPlayerCamera();
115+
if (camera == null) return;
116+
117+
camera.enabled = true;
115118
}
116119

117120
private static void PostOpenEyes()
118121
{
122+
if (instance == null) return;
123+
119124
instance.OpenEyes();
120125
}
121126

122127
private static void PostCloseEyes(float animDuration)
123128
{
129+
if (instance == null) return;
130+
124131
instance.CloseEyesDelayed(animDuration);
125132
}
126133
}

NomaiVR/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"title": "Before playing NomaiVR, some information:",
99
"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.'"
1010
},
11-
"version": "2.8.4",
11+
"version": "2.8.6",
1212
"owmlVersion": "2.3.0",
1313
"requireVR": true
1414
}

0 commit comments

Comments
 (0)