Skip to content

Commit e04ef7e

Browse files
committed
Fix beatmap background not changing upon joining multiplayer room
1 parent 5a7f871 commit e04ef7e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/com/osudroid/ui/v2/multi/RoomScene.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ class RoomScene(
796796

797797
RoomAPI.setPlayerMods(ModMenu.enabledMods.serializeMods())
798798

799-
updateBeatmap(newRoom.beatmap)
800799
updateInformation()
801800
updatePlayerList()
802801

@@ -820,6 +819,12 @@ class RoomScene(
820819
return
821820
}
822821

822+
val beatmapInfo = LibraryManager.findBeatmapByMD5(newRoom.beatmap?.md5)
823+
GlobalManager.getInstance().selectedBeatmap = beatmapInfo
824+
825+
updateBackground(beatmapInfo?.backgroundPath)
826+
updateBeatmap(newRoom.beatmap)
827+
823828
show()
824829
}
825830

0 commit comments

Comments
 (0)