diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-15 14:06:14 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-15 14:06:14 +0100 |
commit | 5a5de07c999d05d372f31c79e2b51b2cfabbebb5 (patch) | |
tree | af95fc88aab8caeb42d52a610d193c2570fa0f4d | |
parent | 6ee46a2fc818d4bbdadf247f40e7ed280274acac (diff) | |
download | skyhanni-5a5de07c999d05d372f31c79e2b51b2cfabbebb5.tar.gz skyhanni-5a5de07c999d05d372f31c79e2b51b2cfabbebb5.tar.bz2 skyhanni-5a5de07c999d05d372f31c79e2b51b2cfabbebb5.zip |
Changed findApiCandidatesFromOtherMods typos
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | 8 |
1 files changed, 6 insertions, 2 deletions
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<String, String> { - 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<String, String>() 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 |