From abf6ccb3edbef60668ee96ddf5a1d61e7acfff3b Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 22 Dec 2016 19:26:19 -0800 Subject: [PATCH] Fix slot backgrounds --- src/main/java/forestry/core/gui/slots/SlotFiltered.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {