This commit is contained in:
navid.sassan 2021-04-02 16:32:08 +02:00
parent 6e52b01e74
commit be14343a81

View File

@ -21,7 +21,7 @@ end
function poll()
if redstone_toggle_id ~= nil then
rednet.send(redstone_toggle_id, "set_state")
rednet.send(redstone_toggle_id, "get_state")
end
if de_store_mon_id ~= nil then
-- todo
@ -45,8 +45,8 @@ end
function draw_screen()
while true do
-- term.clear()
-- term.setCursorPos(0, 0)
term.clear()
term.setCursorPos(0, 0)
term.setTextColor(colors.white)
term.setBackgroundColor(colors.black)
term.write('Press "R" to toggle the rainbows\n')
@ -63,9 +63,9 @@ function draw_screen()
end
end
local sides = peripheral.setNames()
local sides = peripheral.getNames()
for i = 1, #sides do
if peripheral.setType(sides[i]) == "modem" then
if peripheral.getType(sides[i]) == "modem" then
modemSide = sides[i]
break
end