mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Fix incorrect logging of preview tracks without track owner
This commit is contained in:
parent
35a347ce60
commit
7f9cc4d5ff
@ -105,7 +105,9 @@ namespace osu.Game.Audio
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
Logger.Log($"A {nameof(PreviewTrack)} was created without a containing {nameof(IPreviewTrackOwner)}. An owner should be added for correct behaviour.");
|
||||
|
||||
if (Owner == null)
|
||||
Logger.Log($"A {nameof(PreviewTrack)} was created without a containing {nameof(IPreviewTrackOwner)}. An owner should be added for correct behaviour.");
|
||||
}
|
||||
|
||||
protected override Track GetTrack() => trackManager.Get($"https://b.ppy.sh/preview/{beatmapSetInfo.OnlineID}.mp3");
|
||||
|
Loading…
Reference in New Issue
Block a user