From 61d85d909080ddf1b2ccbd930495d10a6b26a4cd Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Mon, 4 May 2015 23:57:03 -0400 Subject: [PATCH] Let AE respect void drawers --- .../storagedrawers/integration/ae2/DrawerMEInventory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/jaquadro/minecraft/storagedrawers/integration/ae2/DrawerMEInventory.java b/src/com/jaquadro/minecraft/storagedrawers/integration/ae2/DrawerMEInventory.java index 0abd4e891..2743a877c 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/integration/ae2/DrawerMEInventory.java +++ b/src/com/jaquadro/minecraft/storagedrawers/integration/ae2/DrawerMEInventory.java @@ -9,6 +9,7 @@ import appeng.api.storage.data.IItemList; import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawer; import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawerGroup; +import com.jaquadro.minecraft.storagedrawers.storage.IUpgradeProvider; import net.minecraft.item.ItemStack; public class DrawerMEInventory implements IMEInventory @@ -55,6 +56,9 @@ public IAEItemStack injectItems (IAEItemStack input, Actionable type, BaseAction } if (itemsLeft > 0) { + if (group instanceof IUpgradeProvider && ((IUpgradeProvider) group).isVoid()) + return null; + IAEItemStack overflow = AEApi.instance().storage().createItemStack(input.getItemStack()); overflow.setStackSize(itemsLeft); return overflow;