fixed filters being too picky

This commit is contained in:
Ellpeck 2020-04-30 17:14:15 +02:00
parent db3b2f0551
commit 2b882649fb

View file

@ -97,7 +97,7 @@ public class ItemFilter extends ItemStackHandler {
private boolean isFiltered(ItemStack stack) {
for (int i = 0; i < this.getSlots(); i++) {
ItemStack other = this.getStackInSlot(i);
if (ItemHandlerHelper.canItemStacksStack(stack, other))
if (ItemStack.areItemsEqual(stack, other))
return true;
}
return false;