1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 02:13:00 +08:00

Revert incorrect ordering change

This commit is contained in:
Bartłomiej Dach 2021-11-17 22:00:09 +01:00
parent 8528cab40b
commit 1c13b39104
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -85,11 +85,11 @@ namespace osu.Game.Beatmaps
var rulesetInstance = ruleset.CreateInstance();
IBeatmapConverter converter = CreateBeatmapConverter(Beatmap, rulesetInstance);
if (rulesetInstance == null)
throw new RulesetLoadException("Creating ruleset instance failed when attempting to create playable beatmap.");
IBeatmapConverter converter = CreateBeatmapConverter(Beatmap, rulesetInstance);
// Check if the beatmap can be converted
if (Beatmap.HitObjects.Count > 0 && !converter.CanConvert())
throw new BeatmapInvalidForRulesetException($"{nameof(Beatmaps.Beatmap)} can not be converted for the ruleset (ruleset: {ruleset.InstantiationInfo}, converter: {converter}).");