Skip to content

Commit

Permalink
fix filter location based for non labeled rules
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Álvarez <[email protected]>
  • Loading branch information
GiviMAD committed Dec 5, 2023
1 parent 7d7d73c commit aa5f98e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ protected String executeCustom(ResourceBundle language, ItemCommandSupplier item
throw new InterpretationException(language.getString(NO_OBJECTS));
}
if (compatibleItemEntries.size() > 1 && context.locationItem() != null) {
var filteredCompatibleEntries = itemsMap.entrySet().stream() //
var filteredCompatibleEntries = compatibleItemEntries.stream() //
.filter(itemEntry -> itemEntry.getValue().locationParentNames.contains(context.locationItem())) //
.collect(Collectors.toSet());
if (filteredCompatibleEntries.size() == 1) {
Expand Down

0 comments on commit aa5f98e

Please sign in to comment.