This commit is contained in:
Noah Pilarski 2024-06-16 02:42:22 -04:00
parent b10291fa1a
commit 88f43e81f9
2 changed files with 40 additions and 37 deletions

View File

@ -121,7 +121,7 @@ namespace NewHorizons.Handlers
public static void OnRevealFact(string factID)
{
if (_factIDToStarSystem.TryGetValue(factID, out var systemUnlocked))
if (_factIDToStarSystem != null && _factIDToStarSystem.TryGetValue(factID, out var systemUnlocked))
{
NHLogger.Log($"Just learned [{factID}] and unlocked [{systemUnlocked}]");
if (!Main.HasWarpDrive)

View File

@ -48,6 +48,8 @@ namespace NewHorizons.Handlers
TimeLoopUtilities.SetLoopDuration(system.Config.loopDuration);
}
if (system.Config.GlobalMusic != null)
{
if (!string.IsNullOrEmpty(system.Config.GlobalMusic.travelAudio))
{
var audioType = AudioTypeHandler.GetAudioType(system.Config.GlobalMusic.travelAudio, system.Mod);
@ -94,4 +96,5 @@ namespace NewHorizons.Handlers
}
}
}
}
}