diff options
| author | Roman / Linnea Gräf <nea@nea.moe> | 2023-03-19 17:58:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-19 17:58:54 +0100 |
| commit | 86d6cc6bf29172fb13ed6aab2ca0676631336da9 (patch) | |
| tree | d5e0fc0aa6a556c44f497d818f36e674a0f2e317 /src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | |
| parent | 4d3e68e8777ac174b938ad63c3367a20e99e06ac (diff) | |
| parent | 6913b635b9d20cc6736aef64bad9f5d517a2f644 (diff) | |
| download | SkyHanni-yaw_snapping.tar.gz SkyHanni-yaw_snapping.tar.bz2 SkyHanni-yaw_snapping.zip | |
Merge branch 'beta' into yaw_snappingyaw_snapping
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt')
| -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 |
