Polish backend system (types), fix error with exporting, write

documentation for experimental hopper backend
This commit is contained in:
Soph :3 2026-01-31 14:16:01 +02:00
parent d367bf0f8d
commit 00c612c005
13 changed files with 562 additions and 554 deletions

View file

@ -160,7 +160,7 @@ function run()
amount = tonumber(args[3], 10)
end
local moved = inv.sendItemAwayMultiple(slots, peripInventory, config.chatbox.players[user], amount)
local moved = inv:sendItemAwayMultiple(slots, peripInventory, config.chatbox.players[user], amount)
chatbox.tell(user, "Moved `" .. tostring(moved) .. "` items.", BOT_NAME)
elseif args[1] == "withdraw" then
@ -176,7 +176,7 @@ function run()
---@type ccTweaked.peripheral.Inventory
local peripInventory = perip.getInventory()
local best = findBest(inv.listNames(), args[2])
local best = findBest(inv:listNames(), args[2])
local itemName = ""
@ -196,7 +196,7 @@ function run()
amount = tonumber(args[3], 10)
end
local moved = inv.sendItemToSelf(itemName, peripInventory, amount, config.chatbox.players[user])
local moved = inv:sendItemToSelf(itemName, peripInventory, amount, config.chatbox.players[user])
chatbox.tell(user, "Moved `" .. tostring(moved) .. "` items.", BOT_NAME)
end