fix: corrects floor detection
This commit is contained in:
parent
f9302e2b3d
commit
d9f8513100
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ local FLOORS = {
|
||||||
return first_char == "A" or first_char == "W"
|
return first_char == "A" or first_char == "W"
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
return redstone.getOutput("top")
|
return redstone.getInput("top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
redstone.setOutput("top", true)
|
redstone.setOutput("top", true)
|
||||||
|
|
@ -26,7 +26,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_21"
|
local relay = "redstone_relay_21"
|
||||||
peripheral.call(relay, "getOutput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_21"
|
local relay = "redstone_relay_21"
|
||||||
|
|
@ -44,7 +44,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_22"
|
local relay = "redstone_relay_22"
|
||||||
peripheral.call(relay, "getOutput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_22"
|
local relay = "redstone_relay_22"
|
||||||
|
|
@ -62,7 +62,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_23"
|
local relay = "redstone_relay_23"
|
||||||
peripheral.call(relay, "getOutput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_23"
|
local relay = "redstone_relay_23"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue