Fix IDE errors

This commit is contained in:
Soph :3 2025-11-11 20:27:27 +02:00
parent 3c338f05dd
commit 0c9f0d65ec
4 changed files with 9 additions and 3 deletions

View file

@ -30,7 +30,7 @@ local function sync()
print("Synced.");
end
---@param itemName string
---@param perip ccTweaked.peripheral.Inventory|nil
---@param perip ccTweaked.peripheral.Inventory|string|nil
---@param maxAmount number|nil
local function sendItemToSelf(itemName, perip, maxAmount)
if perip == nil then
@ -62,7 +62,7 @@ local function sendItemToSelf(itemName, perip, maxAmount)
local ok, moved = pcall(function()
ail.performTransfer()
--chatbox.tell("hartbreix", tostring(perip) .. " <> " .. tostring(itemName) .. " <> " .. tostring(toSend) .. " <> " .. tostring(chosenNBT), "debug")
local amount = ail.pushItems(perip, itemName, toSend, nil, chosenNBT, {
["allowBadTransfers"] = true,
["optimal"] = true
@ -96,6 +96,8 @@ local function sendItemAwayMultiple(slots, perip, id, maxAmount)
end
local srcId = id or turtleId
if srcId == nil then return end
local itemsInSlots = {}
for _, slot in ipairs(slots) do
local item = perip.getItemDetail(slot)