Skip to content

Commit

Permalink
Fixed that sorting containers ignored material filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwantux committed Nov 28, 2024
1 parent 18bfd42 commit cb207d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public boolean fillMissingData() {

@Override
public boolean accept(@Nonnull ItemStack stack) {
int matHash = stack.getItemMeta().hashCode();
int matId = stack.getType().ordinal();
int metaHash = stack.getItemMeta().hashCode();
for (int filter : filters) {
if (matHash == filter || metaHash == filter) return true;
if (matId == filter || metaHash == filter) return true;
}
return false;
}
Expand Down

0 comments on commit cb207d5

Please sign in to comment.