Fix signal scope breaking at eye

This commit is contained in:
Joshua Thome 2022-07-17 18:15:05 -05:00
parent 2014195d2a
commit 24f785a025

View File

@ -103,6 +103,8 @@ namespace NewHorizons.Builder.Props
public static string GetCustomFrequencyName(SignalFrequency frequencyName) public static string GetCustomFrequencyName(SignalFrequency frequencyName)
{ {
// Can happen if NH not initialized because we loaded into Eye first or smth
if (_customFrequencyNames == null) return null;
_customFrequencyNames.TryGetValue(frequencyName, out string name); _customFrequencyNames.TryGetValue(frequencyName, out string name);
return name; return name;
} }