mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-17 02:55:07 +00:00
Let AE respect void drawers
This commit is contained in:
1 parent
46fea525cf
commit
61d85d9090
1 file changed
+4
@@ -9,6 +9,7 @@ import appeng.api.storage.data.IAEItemStack;
|
||||
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<IAEItemStack>
|
||||
@@ -55,6 +56,9 @@ public class DrawerMEInventory implements IMEInventory<IAEItemStack>
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user