diff --git a/src/lib/abstractInventoryLib.lua b/src/lib/abstractInventoryLib.lua index 4dc868e..6a1b36c 100644 --- a/src/lib/abstractInventoryLib.lua +++ b/src/lib/abstractInventoryLib.lua @@ -957,7 +957,8 @@ function abstractInventory(inventories, assumeLimits, logSettings) end end local ret - if type(targetInventory) == "string" and not options.optimal then + + if not options.optimal then ret = pushItemsUnoptimal(targetInventory, name, amount, toSlot, nbt, options) else ret = pushItemsOptimal(targetInventory, name, amount, toSlot, nbt, options) diff --git a/src/modules/inv.lua b/src/modules/inv.lua index dcc56dd..319d695 100644 --- a/src/modules/inv.lua +++ b/src/modules/inv.lua @@ -25,7 +25,16 @@ local function sync() end end - ail = abstractInventoryLib(foundInventories, true) + ail = abstractInventoryLib(foundInventories, true, { + --[[cache = true, + optimal = true, + unoptimal = true, + api = true, + defrag = true, + redirect = function (e) + print(e) + end,]] + }) print("Synced."); end @@ -65,7 +74,7 @@ local function sendItemToSelf(itemName, perip, maxAmount) local amount = ail.pushItems(perip, itemName, toSend, nil, chosenNBT, { ["allowBadTransfers"] = true, - ["optimal"] = true + ["optimal"] = false }) ail.performTransfer()