fix: corrects floor detection

This commit is contained in:
Emerson Rosen-Jones 2025-12-26 13:43:14 -05:00
parent f9302e2b3d
commit d9f8513100

View file

@ -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"