Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fixed filter in ItemRetriever
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Aug 12, 2024
1 parent 6b3b880 commit 78e94fe
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ public void onUpdate() {
private boolean itemMatches(ItemStack item, ItemStack filter) {
boolean empty = filter.isEmpty();
if (empty) {
if (!blacklist) {
return true;
}
return blacklist;
}
boolean matches = ignoreNBT ? item.is(filter.getItem()) : ItemHandlerUtils.canItemStacksStack(item, filter);
return blacklist == matches;
return blacklist != matches;
}

@Override
Expand Down

0 comments on commit 78e94fe

Please sign in to comment.