From 5a5de07c999d05d372f31c79e2b51b2cfabbebb5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 15 Mar 2023 14:06:14 +0100 Subject: Changed findApiCandidatesFromOtherMods typos --- src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt index 17cb04d35..71a5a66b8 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt @@ -107,7 +107,7 @@ class ApiDataLoader { } private fun findApiCandidatesFromOtherMods(): Map { - LorenzUtils.consoleLog("Trying to find the API Key from the config of other mods..") + LorenzUtils.consoleLog("Trying to find the api key from the config of other mods..") val candidates = mutableMapOf() for (mod in OtherMod.values()) { val modName = mod.modName @@ -116,6 +116,10 @@ class ApiDataLoader { val reader = APIUtil.readFile(file) try { val key = mod.readKey(reader).replace("\n", "").replace(" ", "") + if (key == "") { + LorenzUtils.consoleLog("- $modName: no api key set!") + continue + } UUID.fromString(key) candidates[modName] = key } catch (e: Throwable) { @@ -123,7 +127,7 @@ class ApiDataLoader { continue } } else { - LorenzUtils.consoleLog("- $modName: no config found!") + LorenzUtils.consoleLog("- $modName: no mod/config found!") } } return candidates -- cgit