File tree Expand file tree Collapse file tree
Screens/OnlinePlay/Multiplayer/Participants Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ private void updateState()
304304
305305 // If the mods are updated at the end of the frame, the flow container will skip a reflow cycle: https://github.com/ppy/osu-framework/issues/4187
306306 // This looks particularly jarring here, so re-schedule the update to that start of our frame as a fix.
307- Schedule ( ( ) => userModsDisplay . Current . Value = userRuleset == null ? [ ] : user . Mods . Select ( m => m . ToMod ( userRuleset ) ) . ToList ( ) ) ;
307+ Schedule ( ( ) => userModsDisplay . Current . Value = userRuleset == null ? [ ] : slot . User . Mods . Select ( m => m . ToMod ( userRuleset ) ) . ToList ( ) ) ;
308308 }
309309
310310 userStateDisplay . UpdateStatus ( current . Value ) ;
Original file line number Diff line number Diff line change @@ -643,8 +643,7 @@ private async Task changeMatchType(MatchType type)
643643
644644 foreach ( var user in ServerRoom . Users )
645645 {
646- if ( headToHeadRoomState . Slots != null )
647- headToHeadRoomState . Slots [ i ++ ] = user . UserID ;
646+ headToHeadRoomState . Slots ? [ i ++ ] = user . UserID ;
648647
649648 user . MatchState = null ;
650649 await ( ( IMultiplayerClient ) this ) . MatchUserStateChanged ( clone ( user . UserID ) , clone ( user . MatchState ) ) . ConfigureAwait ( false ) ;
@@ -659,8 +658,7 @@ private async Task changeMatchType(MatchType type)
659658
660659 foreach ( var user in ServerRoom . Users )
661660 {
662- if ( teamVersusRoomState . Slots != null )
663- teamVersusRoomState . Slots [ i ++ ] = user . UserID ;
661+ teamVersusRoomState . Slots ? [ i ++ ] = user . UserID ;
664662
665663 user . MatchState = new TeamVersusUserState ( ) ;
666664 await ( ( IMultiplayerClient ) this ) . MatchUserStateChanged ( clone ( user . UserID ) , clone ( user . MatchState ) ) . ConfigureAwait ( false ) ;
You can’t perform that action at this time.
0 commit comments