From bafbb8cf0f04692ec7b9dc984a856a8d9167c41d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:02:17 +0200 Subject: code cleanup --- .../skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at') 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 { private fun getLobbyDisplayPair(): List { val lobbyCode = HypixelData.serverId - val roomId = DungeonAPI.getRoomID().let { if (it == null) "" else "§8$it" } - val lobbyDisplay = if (lobbyCode == null) "" else "§8$lobbyCode $roomId" + val roomId = DungeonAPI.getRoomID()?.let { "§8$it" } ?: "" + val lobbyDisplay = lobbyCode?.let { "§8$it $roomId" } ?: "" return listOf(lobbyDisplay to HorizontalAlignment.LEFT) } -- cgit