diff --git a/cargo-elevator.lua b/cargo-elevator.lua index fba2027..6aadb4b 100644 --- a/cargo-elevator.lua +++ b/cargo-elevator.lua @@ -17,7 +17,7 @@ local FLOORS = { redstone.setOutput("top", false) end, storage = "create:item_vault_17", - elevator_storage = "bottom", + elevator_storage = "create:portable_storage_interface_11", }, { match = function (input) @@ -26,7 +26,7 @@ local FLOORS = { end, detect = function () local relay = "redstone_relay_21" - peripheral.call(relay, "getInput", "top") + return peripheral.call(relay, "getInput", "top") end, call = function () local relay = "redstone_relay_21" @@ -44,7 +44,7 @@ local FLOORS = { end, detect = function () local relay = "redstone_relay_22" - peripheral.call(relay, "getInput", "top") + return peripheral.call(relay, "getInput", "top") end, call = function () local relay = "redstone_relay_22" @@ -62,7 +62,7 @@ local FLOORS = { end, detect = function () local relay = "redstone_relay_23" - peripheral.call(relay, "getInput", "top") + return peripheral.call(relay, "getInput", "top") end, call = function () local relay = "redstone_relay_23" @@ -98,7 +98,7 @@ local PKG_QUEUE = { end, check_cargo = function (self, inv, floors) 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 if item_detail.package ~= nil and floor.match(item_detail.package.getAddress()) then