mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
16 lines
549 B
C#
16 lines
549 B
C#
using HarmonyLib;
|
|
|
|
namespace NewHorizons.Patches.SignalPatches
|
|
{
|
|
[HarmonyPatch(typeof(TravelerAudioManager))]
|
|
public static class TravelerAudioManagerPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(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);
|
|
}
|
|
}
|
|
}
|