implement hopper backend via beta config
This commit is contained in:
parent
d86ab173e1
commit
d367bf0f8d
10 changed files with 3198 additions and 537 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue