mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add a null check for potentially missing custom traveler audio
This commit is contained in:
parent
5ee104b9c3
commit
23c7efd36a
@ -16,7 +16,10 @@ namespace NewHorizons.Patches.EyeScenePatches
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Not starting the loop audio here; EyeMusicController will handle that
|
// Not starting the loop audio here; EyeMusicController will handle that
|
||||||
__instance._signal.GetOWAudioSource().SetLocalVolume(0f);
|
if (__instance._signal != null)
|
||||||
|
{
|
||||||
|
__instance._signal.GetOWAudioSource().SetLocalVolume(0f);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user