From dc56dab4f9f2d5af9fa018bed064edf306d415ec Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Tue, 11 Nov 2025 21:48:01 +0200 Subject: [PATCH] Ok moto --- src/lib/abstractInventoryLib.lua | 3 ++- src/modules/inv.lua | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) 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()