aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt6
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"] ?: ""