summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--door.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/door.lua b/door.lua
index 2c3be24..4c489fb 100644
--- a/door.lua
+++ b/door.lua
@@ -1,9 +1,10 @@
local ps={peripheral.find"redstone_integrator"}
-local function set(v)
+local function set(b)
for _,v in ipairs(ps) do
- v.setOutput("top",v)
+ v.setOutput("top",b)
end
+end
while true do
set(true)