Skip to content

Commit f45fe2d

Browse files
authored
Fix ConfigContainer::isSatisfied faulty logic (#113)
Signed-off-by: Hendrix-Shen <[email protected]>
1 parent 64b7202 commit f45fe2d

File tree

1 file changed

+1
-1
lines changed
  • magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config

1 file changed

+1
-1
lines changed

magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/impl/malilib/config/ConfigContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public boolean isDevOnly() {
155155
}
156156

157157
public boolean isSatisfied() {
158-
return this.dependencies.stream().allMatch(DependenciesContainer::isSatisfied);
158+
return this.dependencies.stream().anyMatch(DependenciesContainer::isSatisfied);
159159
}
160160

161161
@SuppressWarnings("BooleanMethodIsAlwaysInverted")

0 commit comments

Comments
 (0)