mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
Update addItem() implementation
This commit is contained in:
parent
85d3b70d8c
commit
5be74af8fe
@ -430,13 +430,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
{
|
||||
Debug.Assert(Room != null);
|
||||
|
||||
// Add the item to the list first in order to compute gameplay order.
|
||||
item.ID = long.MaxValue;
|
||||
serverSidePlaylist.Add(item);
|
||||
await updatePlaylistOrder(Room).ConfigureAwait(false);
|
||||
|
||||
item.ID = ++lastPlaylistItemId;
|
||||
|
||||
serverSidePlaylist.Add(item);
|
||||
await ((IMultiplayerClient)this).PlaylistItemAdded(item).ConfigureAwait(false);
|
||||
|
||||
await updatePlaylistOrder(Room).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private async Task updateCurrentItem(MultiplayerRoom room, bool notify = true)
|
||||
|
Loading…
Reference in New Issue
Block a user