1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 07:32:55 +08:00

IsInSeason() -> IsInSeason

This commit is contained in:
Max Hübner 2020-10-30 15:56:19 +01:00
parent 4e3fb615d2
commit d19dd4eef6
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Graphics.Backgrounds
return new SeasonalBackground(url);
}
public bool IsInSeason() => DateTimeOffset.Now < endDate.Value;
public bool IsInSeason => DateTimeOffset.Now < endDate.Value;
}
[LongRunningLoad]

View File

@ -109,7 +109,7 @@ namespace osu.Game.Screens.Backgrounds
switch (seasonalBackgroundMode.Value)
{
case SeasonalBackgroundMode.Sometimes:
if (seasonalBackgroundLoader.IsInSeason())
if (seasonalBackgroundLoader.IsInSeason)
goto case SeasonalBackgroundMode.Always;
break;