Fix mod failure checks executing actual game logic

This commit is contained in:
Dean Herbert
2020-05-12 20:08:35 +09:00
parent ab9149844a
commit de50b725d5
11 changed files with 25 additions and 21 deletions

View File

@ -64,12 +64,14 @@ namespace osu.Game.Tests.Visual
protected class ModTestPlayer : TestPlayer
{
protected override bool AllowFail { get; }
private readonly bool allowFail;
protected override bool CheckModsAllowFailure() => allowFail;
public ModTestPlayer(bool allowFail)
: base(false, false)
{
AllowFail = allowFail;
this.allowFail = allowFail;
}
}