aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
index 8d26cf46a..0bbcda9cf 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt
@@ -78,7 +78,7 @@ object RepoPatternManager {
}
}
- val localLoading: Boolean get() = config.forceLocal.get() || (!insideTest && PlatformUtils.isDevEnvironment)
+ val localLoading: Boolean get() = config.forceLocal.get() xor (!insideTest && PlatformUtils.isDevEnvironment)
private val logger = LogManager.getLogger("SkyHanni")
@@ -309,7 +309,7 @@ object RepoPatternManager {
* @return returns any pattern on the [prefix] key space (including list or any other complex structure, but as a simple pattern
* */
internal fun getUnusedPatterns(prefix: String): List<Pattern> {
- if (config.forceLocal.get()) return emptyList()
+ if (localLoading) return emptyList()
try {
verifyKeyShape(prefix)
} catch (e: IllegalArgumentException) {