From 436dec68c993813c20a8ff6753f459390226e38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Wed, 30 Mar 2022 22:03:51 +0200 Subject: [PATCH] Use provided extension method instead of reimplementing locally --- osu.Game/Screens/Select/PlaySongSelect.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/osu.Game/Screens/Select/PlaySongSelect.cs b/osu.Game/Screens/Select/PlaySongSelect.cs index 3f2a5c6183..593436bbb7 100644 --- a/osu.Game/Screens/Select/PlaySongSelect.cs +++ b/osu.Game/Screens/Select/PlaySongSelect.cs @@ -8,7 +8,6 @@ using osu.Framework.Input.Events; using osu.Framework.Screens; using osu.Game.Graphics; -using osu.Game.Online.API.Requests.Responses; using osu.Game.Overlays; using osu.Game.Overlays.Notifications; using osu.Game.Rulesets.Mods; @@ -103,23 +102,7 @@ Player createPlayer() if (replayGeneratingMod != null) { - return new ReplayPlayer((beatmap, mods) => - { - var replayData = replayGeneratingMod.CreateReplayData(beatmap, mods); - - return new Score - { - Replay = replayData.Replay, - ScoreInfo = - { - User = new APIUser - { - Id = APIUser.SYSTEM_USER_ID, - Username = replayData.User.Username, - } - } - }; - }); + return new ReplayPlayer((beatmap, mods) => replayGeneratingMod.CreateScoreFromReplayData(beatmap, mods)); } return new SoloPlayer();