mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Check for null and whitespace
This commit is contained in:
parent
a293dc3aaf
commit
62aa4d6e22
@ -13,6 +13,8 @@ namespace NewHorizons.Utility
|
||||
|
||||
public static void SetAudioClip(OWAudioSource source, string audio, IModBehaviour mod)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(audio)) return;
|
||||
|
||||
if (audio.Contains(".wav") || audio.Contains(".ogg") || audio.Contains(".mp3"))
|
||||
{
|
||||
try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user