mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Property should accept the nullable state.
This commit is contained in:
parent
2f91b5c846
commit
1398a7e11e
@ -48,7 +48,7 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
public Mod ToMod(Ruleset ruleset)
|
public Mod ToMod(Ruleset ruleset)
|
||||||
{
|
{
|
||||||
Mod resultMod = ruleset.CreateModFromAcronym(Acronym);
|
Mod? resultMod = ruleset.CreateModFromAcronym(Acronym);
|
||||||
|
|
||||||
if (resultMod == null)
|
if (resultMod == null)
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SettingsSubsection section = ruleset.CreateSettings();
|
SettingsSubsection? section = ruleset.CreateSettings();
|
||||||
|
|
||||||
if (section != null)
|
if (section != null)
|
||||||
Add(section);
|
Add(section);
|
||||||
|
Loading…
Reference in New Issue
Block a user