diff --git a/NewHorizons/Handlers/SystemCreationHandler.cs b/NewHorizons/Handlers/SystemCreationHandler.cs index eb9fcdbb..fd3fd408 100644 --- a/NewHorizons/Handlers/SystemCreationHandler.cs +++ b/NewHorizons/Handlers/SystemCreationHandler.cs @@ -44,8 +44,6 @@ namespace NewHorizons.Handlers if (clip != null) { - Logger.LogError($"Couldn't get audio from clip [{system.Config.travelAudioClip}] or file [{system.Config.travelAudioFilePath}]"); - var travelSource = Locator.GetGlobalMusicController()._travelSource; travelSource._audioLibraryClip = AudioType.None; travelSource._clipArrayIndex = 0; @@ -53,6 +51,10 @@ namespace NewHorizons.Handlers travelSource._clipSelectionOnPlay = OWAudioSource.ClipSelectionOnPlay.MANUAL; travelSource.clip = clip; } + else + { + Logger.LogError($"Couldn't get audio from clip [{system.Config.travelAudioClip}] or file [{system.Config.travelAudioFilePath}]"); + } } } }