mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:07:52 +08:00
Fix TestModReinstantiation
failing due to custom mod being used
This commit is contained in:
parent
1d7b63e204
commit
d346dd0650
@ -13,7 +13,6 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
@ -487,13 +486,8 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
}
|
||||
|
||||
private class TestMod : Mod, IApplicableToScoreProcessor
|
||||
private class TestMod : OsuModDoubleTime, IApplicableToScoreProcessor
|
||||
{
|
||||
public override string Name => string.Empty;
|
||||
public override string Acronym => string.Empty;
|
||||
public override double ScoreMultiplier => 1;
|
||||
public override LocalisableString Description => string.Empty;
|
||||
|
||||
public bool Applied { get; private set; }
|
||||
|
||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||
|
@ -247,7 +247,7 @@ namespace osu.Game.Utils
|
||||
|
||||
foreach (var rulesetModType in rulesetModsTypes)
|
||||
{
|
||||
if (rulesetModType == proposedModType)
|
||||
if (rulesetModType.IsAssignableFrom(proposedModType))
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user