Posted 06 May 2014 - 11:21 PM
I have a single player world in which I code things for the sake of coding and improving a computercraft facility I've made. Of all the times I've had this world open/close one time out of all the cumputers/programs I have this one randomly got a too long without yeilding from rednet. Not quite sure how to fix so here's my code:
EDIT: Hmm. Just noticed that with the font code uses L and 1 look the exact same.
rednet.open("left")
local lights = false
while true do
local id, message = rednet.receive()
if message == "glcheck" then
rednet.broadcast("glgood")
end
if id == 4 then
if message == "l1" then
lights = true
elseif message == "l2" then
lights = false
end
end
if lights then
rs.setOutput("right", true)
elseif not lights then
rs.setOutput("right", false)
end
end
EDIT: Hmm. Just noticed that with the font code uses L and 1 look the exact same.
Edited on 06 May 2014 - 09:24 PM