diff --git a/src/main/java/forestry/core/gui/slots/SlotFiltered.java b/src/main/java/forestry/core/gui/slots/SlotFiltered.java index 1d03e8639..28966b033 100644 --- a/src/main/java/forestry/core/gui/slots/SlotFiltered.java +++ b/src/main/java/forestry/core/gui/slots/SlotFiltered.java @@ -36,9 +36,12 @@ public class SlotFiltered extends SlotWatched { @Override public boolean isItemValid(ItemStack itemstack) { + if (itemstack.isEmpty()) { + return true; + } int slotIndex = getSlotIndex(); return !filterSlotDelegate.isLocked(slotIndex) && - (itemstack == null || filterSlotDelegate.canSlotAccept(slotIndex, itemstack)); + filterSlotDelegate.canSlotAccept(slotIndex, itemstack); } public SlotFiltered setBlockedTexture(String ident) {