Ok moto
This commit is contained in:
parent
0c9f0d65ec
commit
dc56dab4f9
2 changed files with 13 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue