chore: add missing robot.back method

and keep robot.backward as an alias
This commit is contained in:
Guillaume ARM 2024-05-25 23:13:00 +02:00
parent 3181d68839
commit 022f778f0b

View File

@ -42,7 +42,7 @@ api.create = function(state)
return ok, err return ok, err
end end
robot.backward = function() robot.back = function()
local ok, err = turtle.back() local ok, err = turtle.back()
if ok then if ok then
@ -51,6 +51,7 @@ api.create = function(state)
return ok, err return ok, err
end end
robot.backward = robot.back
robot.up = function() robot.up = function()
local ok, err = turtle.up() local ok, err = turtle.up()