From eddde661e1c38946e6e277a1812aff13c7743798 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: Mon, 14 Oct 2024 15:33:45 +0800 Subject: [PATCH] Fix ConfigContainer::isSatisfied faulty logic again (#114) 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 0ee8516c..3bd4533b 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().anyMatch(DependenciesContainer::isSatisfied); + return this.dependencies.isEmpty() || this.dependencies.stream().anyMatch(DependenciesContainer::isSatisfied); } @SuppressWarnings("BooleanMethodIsAlwaysInverted")