mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
beatmap can not be null in DifficultyColouredContainer.cs
This commit is contained in:
parent
b2e49c1e71
commit
567cd6316c
@ -43,6 +43,9 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
private DifficultyRating getDifficultyRating(BeatmapInfo beatmap)
|
||||
{
|
||||
if (beatmap == null)
|
||||
throw new ArgumentNullException(nameof(beatmap));
|
||||
|
||||
var rating = beatmap.StarDifficulty;
|
||||
|
||||
if (rating < 1.5) return DifficultyRating.Easy;
|
||||
|
Loading…
Reference in New Issue
Block a user