Skip to content

Commit

Permalink
AbstractSimpleEntrySet: Changed requiresFromMap() to fix the crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelbayria committed Jan 1, 2025
1 parent feee33d commit 1f84bd0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,8 @@ public BL requiresChildren(String... childKeys) {
}

//exclusive with addCondition
public BL requiresFromMap(Map<?, ?>... entrySets) {
this.addCondition(blockType -> {
for (Map<?, ?> entrySet : entrySets) {
if (Objects.isNull(entrySet.get(blockType))) return false;
}
return true;
});
public BL requiresFromMap(Map<T, ?> entrySet) {
this.addCondition(blockType -> !Objects.isNull(entrySet.get(blockType)));
return (BL) this;
}

Expand Down

0 comments on commit 1f84bd0

Please sign in to comment.