Update ModAutoplay matching to use new UserPlayable flag instead

This commit is contained in:
Dean Herbert
2021-06-09 14:32:48 +09:00
parent d0e9f8ef90
commit b754c52392
4 changed files with 5 additions and 5 deletions

View File

@ -44,9 +44,9 @@ namespace osu.Game.Screens.Play
// Token request construction should happen post-load to allow derived classes to potentially prepare DI backings that are used to create the request.
var tcs = new TaskCompletionSource<bool>();
if (Mods.Value.Any(m => m is ModAutoplay))
if (Mods.Value.Any(m => !m.UserPlayable))
{
handleTokenFailure(new InvalidOperationException("Autoplay loaded."));
handleTokenFailure(new InvalidOperationException("Non-user playable mod selected."));
return false;
}