mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove Null Signals
Fixes https://github.com/xen-42/outer-wilds-new-horizons/issues/115
This commit is contained in:
parent
17abc1e670
commit
faa5345afe
@ -130,5 +130,12 @@ namespace NewHorizons.Patches
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(TravelerAudioManager), nameof(TravelerAudioManager.Update))]
|
||||
public static void TravelerAudioManager_Update(TravelerAudioManager __instance)
|
||||
{
|
||||
__instance._signals.RemoveAll(signal => signal == null || signal.gameObject == null || signal._owAudioSource == null || signal._owAudioSource._audioSource == null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user