From 8fcc64e44636c17363b7d6cb7cc8f5acc78a2d2e Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 14 Jun 2022 21:29:38 -0400 Subject: [PATCH] Logged in the wrong place --- NewHorizons/Handlers/SystemCreationHandler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}]"); + } } } }