diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-15 19:02:17 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-15 19:02:17 +0200 |
commit | bafbb8cf0f04692ec7b9dc984a856a8d9167c41d (patch) | |
tree | 4be92c3a120fafb31deea034c3cd18d01e53abcd /src/main/java/at/hannibal2/skyhanni/features | |
parent | 62a5925ec28fa0f41cd8324477d4a3f64caa9c2e (diff) | |
download | skyhanni-bafbb8cf0f04692ec7b9dc984a856a8d9167c41d.tar.gz skyhanni-bafbb8cf0f04692ec7b9dc984a856a8d9167c41d.tar.bz2 skyhanni-bafbb8cf0f04692ec7b9dc984a856a8d9167c41d.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 4 |
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) } |