diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt index 3c1643dad..c77210ce6 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt @@ -25,7 +25,7 @@ class ApiDataLoader { fun onRepositoryReload(event: RepositoryReloadEvent) { usePlayerApiKey = false event.getConstant("DisabledFeatures")?.let { - if (it.asJsonObject["user_api_keys"]?.asBoolean ?: false) { + if (it.asJsonObject["user_api_keys"]?.asBoolean == true) { usePlayerApiKey = true } } |