aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt4
1 files changed, 2 insertions, 2 deletions
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 f8b8d5c71..d958c0c9c 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
@@ -525,8 +525,8 @@ private fun getTimeDisplayPair(): List<ScoreboardElementType> {
private fun getLobbyDisplayPair(): List<ScoreboardElementType> {
val lobbyCode = HypixelData.serverId
- val roomId = DungeonAPI.getRoomID().let { if (it == null) "" else "§8$it" }
- val lobbyDisplay = if (lobbyCode == null) "<hidden>" else "§8$lobbyCode $roomId"
+ val roomId = DungeonAPI.getRoomID()?.let { "§8$it" } ?: ""
+ val lobbyDisplay = lobbyCode?.let { "§8$it $roomId" } ?: "<hidden>"
return listOf(lobbyDisplay to HorizontalAlignment.LEFT)
}