aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-15 14:06:14 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-15 14:06:14 +0100
commit6fe0f5d9775faf646126cf37a27de8ab879336b2 (patch)
treeaf95fc88aab8caeb42d52a610d193c2570fa0f4d
parent4669fbe06db8432d4bcfcf9bfce47e65a0dc1049 (diff)
downloadSkyHanni-6fe0f5d9775faf646126cf37a27de8ab879336b2.tar.gz
SkyHanni-6fe0f5d9775faf646126cf37a27de8ab879336b2.tar.bz2
SkyHanni-6fe0f5d9775faf646126cf37a27de8ab879336b2.zip
Changed findApiCandidatesFromOtherMods typos
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt8
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