implement hopper backend via beta config

This commit is contained in:
Soph :3 2026-01-30 23:07:09 +02:00
parent d86ab173e1
commit d367bf0f8d
10 changed files with 3198 additions and 537 deletions

View file

@ -160,7 +160,7 @@ function run()
amount = tonumber(args[3], 10)
end
local moved = inv.sendItemAwayMultiple(slots, peripInventory, peripInventory, 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
@ -196,7 +196,7 @@ function run()
amount = tonumber(args[3], 10)
end
local moved = inv.sendItemToSelf(itemName, peripInventory, amount)
local moved = inv.sendItemToSelf(itemName, peripInventory, amount, config.chatbox.players[user])
chatbox.tell(user, "Moved `" .. tostring(moved) .. "` items.", BOT_NAME)
end