Simplify/improve beatmap conversion precheck

This commit is contained in:
smoogipoo
2019-12-23 17:44:18 +09:00
parent cc808a9eb1
commit 6e7426a098
9 changed files with 13 additions and 18 deletions

View File

@ -108,7 +108,7 @@ namespace osu.Game.Beatmaps
IBeatmapConverter converter = CreateBeatmapConverter(Beatmap, rulesetInstance);
// Check if the beatmap can be converted
if (!converter.CanConvert)
if (!converter.CanConvert())
throw new BeatmapInvalidForRulesetException($"{nameof(Beatmaps.Beatmap)} can not be converted for the ruleset (ruleset: {ruleset.InstantiationInfo}, converter: {converter}).");
// Apply conversion mods