diff --git a/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleUnitTile.java b/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleUnitTile.java index 6ae3b924..dd8046d6 100644 --- a/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleUnitTile.java +++ b/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleUnitTile.java @@ -253,6 +253,10 @@ public String getFormatedDisplayAmount() { return NumberUtils.getFormatedBigNumber(stored); } + public boolean isVoidItems() { + return voidItems; + } + private class BlackHoleHandler implements IItemHandler { private int amount; @@ -320,11 +324,8 @@ public int getSlotLimit(int slot) { public boolean isItemValid(int slot, @Nonnull ItemStack stack) { if (slot == 0){ ItemStack fl = blStack; - if (!filter.getFilterSlots()[slot].getFilter().isEmpty()) { - ItemStack filterStack = filter.getFilterSlots()[slot].getFilter(); - if (filterStack.isItemEqual(fl) && ItemStack.areItemStackTagsEqual(filterStack, fl)) { - fl = filter.getFilterSlots()[slot].getFilter(); - } + if (!filter.getFilterSlots()[slot].getFilter().isEmpty() && fl.isEmpty()) { + fl = filter.getFilterSlots()[slot].getFilter(); } return fl.isEmpty() || (fl.isItemEqual(stack) && ItemStack.areItemStackTagsEqual(fl, stack)); }