Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Oct 26, 2020
1 parent 094a2dd commit fcdb8fb
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,14 @@ 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;
int[] order = group.getAccessibleDrawerSlots();
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()) {
Expand Down

0 comments on commit fcdb8fb

Please sign in to comment.