From 71c25538b9ba513a3e5bebd058c6089cfb8c34e6 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 25 Apr 2023 13:11:01 +0100 Subject: [PATCH] Fixed inverse filters --- core/src/main/kotlin/com/willfp/libreforge/filters/Filters.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/com/willfp/libreforge/filters/Filters.kt b/core/src/main/kotlin/com/willfp/libreforge/filters/Filters.kt index 84f7d29a2..8470ca73a 100644 --- a/core/src/main/kotlin/com/willfp/libreforge/filters/Filters.kt +++ b/core/src/main/kotlin/com/willfp/libreforge/filters/Filters.kt @@ -33,7 +33,7 @@ object Filters : Registry>() { val blocks = mutableListOf>() for (key in config.getKeys(false)) { - val filter = get(key) ?: continue + val filter = get(key) ?: get(key.removePrefix("not_")) ?: continue blocks += makeBlock(filter, config, context) ?: continue }