mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Prevent removal of expired items in TestMultiplayerClient
This commit is contained in:
@ -361,6 +361,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
if (item.OwnerID != userId)
|
||||
throw new InvalidOperationException("Attempted to remove an item which is not owned by the user.");
|
||||
|
||||
if (item.Expired)
|
||||
throw new InvalidOperationException("Attempted to remove an item which has already been played");
|
||||
|
||||
serverSidePlaylist.Remove(item);
|
||||
await ((IMultiplayerClient)this).PlaylistItemRemoved(playlistItemId).ConfigureAwait(false);
|
||||
|
||||
|
Reference in New Issue
Block a user