mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Just expect 32 signals max instead of constantly refreshing the array
This commit is contained in:
parent
3403c5da34
commit
8089de358a
@ -113,9 +113,6 @@ namespace NewHorizons.Builder.Props.Audio
|
||||
|
||||
NumberOfFrequencies = EnumUtils.GetValues<SignalFrequency>().Length;
|
||||
|
||||
// This stuff happens after the signalscope is Awake so we have to change the number of frequencies now
|
||||
GameObject.FindObjectOfType<Signalscope>()._strongestSignals = new AudioSignal[NumberOfFrequencies + 1];
|
||||
|
||||
return freq;
|
||||
}
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ namespace NewHorizons.Patches.SignalPatches
|
||||
[HarmonyPatch(nameof(Signalscope.Awake))]
|
||||
public static void Signalscope_Awake(Signalscope __instance)
|
||||
{
|
||||
__instance._strongestSignals = new AudioSignal[8];
|
||||
__instance._strongestSignals = new AudioSignal[32];
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user