From c4b42412d844bb943144fd17f3a4d134c8ed5eea Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sun, 7 Jul 2024 11:35:03 +0200 Subject: Backend: Fix RepoPattern localeLoading (#2069) --- .../at/hannibal2/skyhanni/utils/repopatterns/RepoPatternManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 { - if (config.forceLocal.get()) return emptyList() + if (localLoading) return emptyList() try { verifyKeyShape(prefix) } catch (e: IllegalArgumentException) { -- cgit