diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index 8dba75a..86cee25 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -578,6 +578,9 @@ namespace MuzikaGromche Track track = Tracks[i]; track.LoadedStart = DownloadHandlerAudioClip.GetContent(requests[i * 2]); track.LoadedLoop = DownloadHandlerAudioClip.GetContent(requests[i * 2 + 1]); +#if DEBUG + Debug.Log($"{nameof(MuzikaGromche)} Track {track.Name} {track.LoadedStart.length:N4} {track.LoadedLoop.length:N4}"); +#endif } Config = new Config(base.Config); DiscoBallManager.Load(); @@ -2173,7 +2176,7 @@ namespace MuzikaGromche __instance.farAudio = __state.farAudio; var time = __instance.farAudio.time; - var delay = Plugin.CurrentTrack!.LoadedStart.length - time; + var delay = Plugin.CurrentTrack.LoadedStart.length - time; // Override screamingSFX with Loop, delayed by the remaining time of the Start audio __instance.creatureVoice.Stop();