fix: remove several syntax errors

This commit is contained in:
Emerson Rosen-Jones 2025-12-26 13:39:27 -05:00
parent 5acc3ab0f7
commit f9302e2b3d

View file

@ -15,7 +15,7 @@ local FLOORS = {
redstone.setOutput("top", true) redstone.setOutput("top", true)
os.sleep(0.5) os.sleep(0.5)
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 = "bottom",
}, },
@ -33,7 +33,7 @@ local FLOORS = {
peripheral.call(relay, "setOutput", "top", true) peripheral.call(relay, "setOutput", "top", true)
os.sleep(0.5) os.sleep(0.5)
peripheral.call(relay, "setOutput", "top", false) peripheral.call(relay, "setOutput", "top", false)
end end,
storage = "create:item_vault_18", storage = "create:item_vault_18",
elevator_storage = "create:portable_storage_interface_8", elevator_storage = "create:portable_storage_interface_8",
}, },
@ -51,7 +51,7 @@ local FLOORS = {
peripheral.call(relay, "setOutput", "top", true) peripheral.call(relay, "setOutput", "top", true)
os.sleep(0.5) os.sleep(0.5)
peripheral.call(relay, "setOutput", "top", false) peripheral.call(relay, "setOutput", "top", false)
end end,
storage = "create:item_vault_19", storage = "create:item_vault_19",
elevator_storage = "create:portable_storage_interface_9", elevator_storage = "create:portable_storage_interface_9",
}, },
@ -69,7 +69,7 @@ local FLOORS = {
peripheral.call(relay, "setOutput", "top", true) peripheral.call(relay, "setOutput", "top", true)
os.sleep(0.5) os.sleep(0.5)
peripheral.call(relay, "setOutput", "top", false) peripheral.call(relay, "setOutput", "top", false)
end end,
storage = "create:item_vault_20", storage = "create:item_vault_20",
elevator_storage = "create:portable_storage_interface_10", elevator_storage = "create:portable_storage_interface_10",
}, },
@ -107,7 +107,7 @@ local PKG_QUEUE = {
end end
end end
end end
end end,
transfer_all = function (self, src, dest, floors) transfer_all = function (self, src, dest, floors)
-- assumption: this always transfers into the cargo box -- assumption: this always transfers into the cargo box
for slot, item in pairs(peripheral.call(src, "list")) do for slot, item in pairs(peripheral.call(src, "list")) do
@ -134,7 +134,7 @@ local PKG_QUEUE = {
end, end,
get_next_floor = function (self) get_next_floor = function (self)
return table.remove(self.queue, 1) return table.remove(self.queue, 1)
end end,
queue = {}, queue = {},
} }
@ -161,5 +161,5 @@ function run (floors, queue, first_run)
end end
if arg ~= nil and arg[1] == "run" then if arg ~= nil and arg[1] == "run" then
run(FLOORS, queue, true) run(FLOORS, PKG_QUEUE, true)
end end