improve rcturtle remote

This commit is contained in:
LordMZTE 2022-03-06 00:27:55 +01:00
parent a8e35502ac
commit 6fa0e011d7
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -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()