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