mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add length check back to workingbeatmap
This commit is contained in:
parent
6e7426a098
commit
3e03916c39
@ -108,7 +108,7 @@ namespace osu.Game.Beatmaps
|
|||||||
IBeatmapConverter converter = CreateBeatmapConverter(Beatmap, rulesetInstance);
|
IBeatmapConverter converter = CreateBeatmapConverter(Beatmap, rulesetInstance);
|
||||||
|
|
||||||
// Check if the beatmap can be converted
|
// Check if the beatmap can be converted
|
||||||
if (!converter.CanConvert())
|
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}).");
|
throw new BeatmapInvalidForRulesetException($"{nameof(Beatmaps.Beatmap)} can not be converted for the ruleset (ruleset: {ruleset.InstantiationInfo}, converter: {converter}).");
|
||||||
|
|
||||||
// Apply conversion mods
|
// Apply conversion mods
|
||||||
|
Loading…
Reference in New Issue
Block a user