From fcdb8fb325ebc86e2e655f07bdd7e0f25688ecee Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sun, 25 Oct 2020 21:21:27 -0400 Subject: [PATCH] Cleanup --- .../capabilities/DrawerItemHandler.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/capabilities/DrawerItemHandler.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/capabilities/DrawerItemHandler.java index c27ee26e5..37cbc8d82 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/capabilities/DrawerItemHandler.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/capabilities/DrawerItemHandler.java @@ -56,10 +56,7 @@ public ItemStack insertItem (int slot, @Nonnull ItemStack stack, boolean simulat return stack; if (slotIsVirtual(slot)) { - //if (StorageDrawers.config.cache.enableItemConversion) - return insertItemFullScan(stack, simulate); - //else - // return stack; + return insertItemFullScan(stack, simulate); } slot -= 1; @@ -67,14 +64,6 @@ public ItemStack insertItem (int slot, @Nonnull ItemStack stack, boolean simulat int orderedSlot = (slot >= 0 && slot < order.length) ? order[slot] : -1; int prevSlot = (slot >= 1 && slot < order.length) ? order[slot - 1] : -1; - /*if (StorageDrawers.config.cache.enableItemConversion && orderedSlot > 0) { - IDrawer drawer = group.getDrawer(orderedSlot); - if (drawer.isEnabled() && drawer.isEmpty()) { - IDrawer prevDrawer = group.getDrawer(prevSlot); - if (!prevDrawer.isEnabled() || !prevDrawer.isEmpty()) - return insertItemFullScan(stack, simulate); - } - }*/ if (orderedSlot > 0) { IDrawer drawer = group.getDrawer(orderedSlot); if (drawer.isEnabled() && drawer.isEmpty()) {