Compare commits

..

3 commits

Author SHA1 Message Date
Emerson Rosen-Jones
6672c75d1a fix: removes syntax error 2025-12-26 14:06:55 -05:00
Emerson Rosen-Jones
3ce4f9579d fix: corrects floor detection part 2 2025-12-26 14:06:48 -05:00
Emerson Rosen-Jones
dac0874232 fix: remove error in default config 2025-12-26 13:46:47 -05:00

View file

@ -17,7 +17,7 @@ local FLOORS = {
redstone.setOutput("top", false) redstone.setOutput("top", false)
end, end,
storage = "create:item_vault_17", storage = "create:item_vault_17",
elevator_storage = "bottom", elevator_storage = "create:portable_storage_interface_11",
}, },
{ {
match = function (input) match = function (input)
@ -26,7 +26,7 @@ local FLOORS = {
end, end,
detect = function () detect = function ()
local relay = "redstone_relay_21" local relay = "redstone_relay_21"
peripheral.call(relay, "getInput", "top") return peripheral.call(relay, "getInput", "top")
end, end,
call = function () call = function ()
local relay = "redstone_relay_21" local relay = "redstone_relay_21"
@ -44,7 +44,7 @@ local FLOORS = {
end, end,
detect = function () detect = function ()
local relay = "redstone_relay_22" local relay = "redstone_relay_22"
peripheral.call(relay, "getInput", "top") return peripheral.call(relay, "getInput", "top")
end, end,
call = function () call = function ()
local relay = "redstone_relay_22" local relay = "redstone_relay_22"
@ -62,7 +62,7 @@ local FLOORS = {
end, end,
detect = function () detect = function ()
local relay = "redstone_relay_23" local relay = "redstone_relay_23"
peripheral.call(relay, "getInput", "top") return peripheral.call(relay, "getInput", "top")
end, end,
call = function () call = function ()
local relay = "redstone_relay_23" local relay = "redstone_relay_23"
@ -98,7 +98,7 @@ local PKG_QUEUE = {
end, end,
check_cargo = function (self, inv, floors) check_cargo = function (self, inv, floors)
for slot, item in pairs(peripheral.call(inv, "list")) do for slot, item in pairs(peripheral.call(inv, "list")) do
local item_detail = peripheral.call(src, "getItemDetail", slot) local item_detail = peripheral.call(inv, "getItemDetail", slot)
for i, floor in ipairs(floors) do for i, floor in ipairs(floors) do
if item_detail.package ~= nil and if item_detail.package ~= nil and
floor.match(item_detail.package.getAddress()) then floor.match(item_detail.package.getAddress()) then