improve rcturtle remote
This commit is contained in:
parent
a8e35502ac
commit
6fa0e011d7
|
@ -90,7 +90,7 @@ end
|
||||||
|
|
||||||
local function set_slot(num)
|
local function set_slot(num)
|
||||||
send(function()
|
send(function()
|
||||||
local id, val = rednet.receive()
|
local _, val = rednet.receive()
|
||||||
turtle.select(val)
|
turtle.select(val)
|
||||||
send_remote(val)
|
send_remote(val)
|
||||||
end)
|
end)
|
||||||
|
@ -106,6 +106,7 @@ while true do
|
||||||
local _, key = os.pullEvent "key"
|
local _, key = os.pullEvent "key"
|
||||||
local action = actions[key];
|
local action = actions[key];
|
||||||
if action then
|
if action then
|
||||||
|
reset_output()
|
||||||
send(action)
|
send(action)
|
||||||
end
|
end
|
||||||
end, function()
|
end, function()
|
||||||
|
|
Loading…
Reference in a new issue