mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
oops
This commit is contained in:
parent
b10291fa1a
commit
88f43e81f9
@ -121,7 +121,7 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
public static void OnRevealFact(string factID)
|
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}]");
|
NHLogger.Log($"Just learned [{factID}] and unlocked [{systemUnlocked}]");
|
||||||
if (!Main.HasWarpDrive)
|
if (!Main.HasWarpDrive)
|
||||||
|
|||||||
@ -48,6 +48,8 @@ namespace NewHorizons.Handlers
|
|||||||
TimeLoopUtilities.SetLoopDuration(system.Config.loopDuration);
|
TimeLoopUtilities.SetLoopDuration(system.Config.loopDuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (system.Config.GlobalMusic != null)
|
||||||
|
{
|
||||||
if (!string.IsNullOrEmpty(system.Config.GlobalMusic.travelAudio))
|
if (!string.IsNullOrEmpty(system.Config.GlobalMusic.travelAudio))
|
||||||
{
|
{
|
||||||
var audioType = AudioTypeHandler.GetAudioType(system.Config.GlobalMusic.travelAudio, system.Mod);
|
var audioType = AudioTypeHandler.GetAudioType(system.Config.GlobalMusic.travelAudio, system.Mod);
|
||||||
@ -94,4 +96,5 @@ namespace NewHorizons.Handlers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user