From d9f85131005e68339ccd6f333ae6277ec00ae2b0 Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Fri, 26 Dec 2025 13:43:14 -0500 Subject: [PATCH] fix: corrects floor detection --- cargo-elevator.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cargo-elevator.lua b/cargo-elevator.lua index 58d8002..fba2027 100644 --- a/cargo-elevator.lua +++ b/cargo-elevator.lua @@ -9,7 +9,7 @@ local FLOORS = { return first_char == "A" or first_char == "W" end, detect = function () - return redstone.getOutput("top") + return redstone.getInput("top") end, call = function () redstone.setOutput("top", true) @@ -26,7 +26,7 @@ local FLOORS = { end, detect = function () local relay = "redstone_relay_21" - peripheral.call(relay, "getOutput", "top") + 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, "getOutput", "top") + 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, "getOutput", "top") + peripheral.call(relay, "getInput", "top") end, call = function () local relay = "redstone_relay_23"