diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-03 19:47:14 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-03 19:47:14 +0200 |
commit | 6dc2637814aec37e1312d4f9a18ec70f58b938b1 (patch) | |
tree | 72d3d972247b5fe2ec1823dfed7e861642e8abb0 /src | |
parent | 0d288498a60718e2a165666ebd69b10aef658833 (diff) | |
download | skyhanni-6dc2637814aec37e1312d4f9a18ec70f58b938b1.tar.gz skyhanni-6dc2637814aec37e1312d4f9a18ec70f58b938b1.tar.bz2 skyhanni-6dc2637814aec37e1312d4f9a18ec70f58b938b1.zip |
code cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 6f9fdd138..dbf153c57 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -114,9 +114,9 @@ class HypixelData { // Data from locraw var locrawData: JsonObject? = null - private var locraw: MutableMap<String, String> = mutableMapOf( - "server" to "", "gametype" to "", "lobbyname" to "", "lobbytype" to "", "mode" to "", "map" to "" - ) + private var locraw: MutableMap<String, String> = listOf( + "server", "gametype", "lobbyname", "lobbytype", "mode", "map" + ).associate { it to "" }.toMutableMap() val server get() = locraw["server"] ?: "" val gameType get() = locraw["gametype"] ?: "" |