From 6dc2637814aec37e1312d4f9a18ec70f58b938b1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:47:14 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 = mutableMapOf( - "server" to "", "gametype" to "", "lobbyname" to "", "lobbytype" to "", "mode" to "", "map" to "" - ) + private var locraw: MutableMap = listOf( + "server", "gametype", "lobbyname", "lobbytype", "mode", "map" + ).associate { it to "" }.toMutableMap() val server get() = locraw["server"] ?: "" val gameType get() = locraw["gametype"] ?: "" -- cgit