From 62a5925ec28fa0f41cd8324477d4a3f64caa9c2e Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:00:33 +0200 Subject: Improvementt: Add Dungeon Room Id to Lobby Code (#1428) --- .../features/gui/customscoreboard/ScoreboardElements.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui') diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt index 8c1c1afc1..f8b8d5c71 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt @@ -524,14 +524,10 @@ private fun getTimeDisplayPair(): List { } private fun getLobbyDisplayPair(): List { - val lobbyCode = HypixelData.serverId ?: "" - return listOf( - if (lobbyCode == "") { - "" - } else { - "§8$lobbyCode" - } to HorizontalAlignment.LEFT - ) + val lobbyCode = HypixelData.serverId + val roomId = DungeonAPI.getRoomID().let { if (it == null) "" else "§8$it" } + val lobbyDisplay = if (lobbyCode == null) "" else "§8$lobbyCode $roomId" + return listOf(lobbyDisplay to HorizontalAlignment.LEFT) } private fun getPowerDisplayPair() = listOf( -- cgit