From 79d0cd3af5b2acf11fc63bc3aa6743f784a3a0f6 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 7 Jun 2024 22:10:11 +1000 Subject: Backend: Change Java to Kotlin for repo files (#1543) --- .../skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/rift') diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt index c4c275cfa..56efab49b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt @@ -147,9 +147,9 @@ object EnigmaSoulWaypoints { @SubscribeEvent fun onRepoReload(event: RepositoryReloadEvent) { val data = event.getConstant("EnigmaSouls") - val areas = data.areas ?: error("'areas' is null in EnigmaSouls!") + val areas = data.areas soulLocations = buildMap { - for ((area, locations) in areas) { + for ((_, locations) in areas) { for (location in locations) { this[location.name] = location.position } -- cgit