From f45fe2dfdd76124e8cf8a1e5402168780c6a5615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AB=E3=82=83=E3=82=93=E3=81=A1=E3=82=83=E3=82=93?= Date: Sun, 13 Oct 2024 19:16:39 +0800 Subject: [PATCH] Fix ConfigContainer::isSatisfied faulty logic (#113) Signed-off-by: Hendrix-Shen --- .../magiclib/impl/malilib/config/ConfigContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config/ConfigContainer.java b/magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config/ConfigContainer.java index bfda39e7..0ee8516c 100644 --- a/magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config/ConfigContainer.java +++ b/magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config/ConfigContainer.java @@ -155,7 +155,7 @@ public boolean isDevOnly() { } public boolean isSatisfied() { - return this.dependencies.stream().allMatch(DependenciesContainer::isSatisfied); + return this.dependencies.stream().anyMatch(DependenciesContainer::isSatisfied); } @SuppressWarnings("BooleanMethodIsAlwaysInverted")