mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix GetCustomFrequencyName NRE
happens when going to solar system to get prefabs for eye
This commit is contained in:
parent
e55818bfb8
commit
d3f8c55f31
@ -121,6 +121,7 @@ namespace NewHorizons.Builder.Props.Audio
|
||||
|
||||
public static string GetCustomFrequencyName(SignalFrequency frequencyName)
|
||||
{
|
||||
if (_customFrequencyNames == null) return string.Empty;
|
||||
_customFrequencyNames.TryGetValue(frequencyName, out string name);
|
||||
return name;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user