From 3ce4f9579ddb085f5f71556fe633949333212c4a Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Fri, 26 Dec 2025 14:06:48 -0500 Subject: [PATCH] fix: corrects floor detection part 2 --- cargo-elevator.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cargo-elevator.lua b/cargo-elevator.lua index 376a305..66749bb 100644 --- a/cargo-elevator.lua +++ b/cargo-elevator.lua @@ -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"