This commit is contained in:
navid.sassan 2021-04-02 15:44:58 +02:00
parent 0a8ce0e3b8
commit 7ac1076e1d

View File

@ -1,5 +1,8 @@
local hostname = "redstone_toggle" .. os.getComputerID() local hostname = "redstone_toggle" .. os.getComputerID()
output_state = redstone.getInput("back")
lever_state = redstone.getInput("top")
function dump(o) function dump(o)
if o == nil then if o == nil then
return "" return ""
@ -72,9 +75,6 @@ function lever_input()
end end
end end
output_state = redstone.getInput("back")
lever_state = redstone.getInput("top")
local sides = peripheral.getNames() local sides = peripheral.getNames()
for i = 1, #sides do for i = 1, #sides do
if peripheral.getType(sides[i]) == "modem" then if peripheral.getType(sides[i]) == "modem" then