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