attempt to comply with appveyor

This commit is contained in:
LeNitrous 2019-03-01 19:10:32 +08:00
parent 4e081fe1fc
commit cf51c8aa31

View File

@ -297,9 +297,9 @@ namespace osu.Game.Screens.Play
private readonly WorkingBeatmap beatmap; private readonly WorkingBeatmap beatmap;
private LoadingAnimation loading; private LoadingAnimation loading;
private Sprite backgroundSprite; private Sprite backgroundSprite;
private ModDisplay ModDisplay; private ModDisplay modDisplay;
protected virtual ModDisplay CreateModsContainer() => new ModDisplay protected ModDisplay CreateModsContainer() => new ModDisplay
{ {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
@ -333,8 +333,9 @@ namespace osu.Game.Screens.Play
private void load() private void load()
{ {
var metadata = beatmap?.BeatmapInfo?.Metadata ?? new BeatmapMetadata(); var metadata = beatmap?.BeatmapInfo?.Metadata ?? new BeatmapMetadata();
ModDisplay = CreateModsContainer(); modDisplay = CreateModsContainer();
ModDisplay.Current.BindTo(beatmap.Mods);
modDisplay.Current.BindTo(beatmap?.Mods);
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Children = new Drawable[] Children = new Drawable[]
@ -403,7 +404,7 @@ namespace osu.Game.Screens.Play
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
}, },
ModDisplay modDisplay
}, },
} }
}; };