1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-18 11:20:01 +00:00

turtle not pathing backwards

This commit is contained in:
kepler155c@gmail.com 2018-04-02 16:59:47 -04:00
parent 9ee63da66f
commit e6a98b34cb

View File

@ -173,7 +173,8 @@ local function pathTo(dest, options)
-- use single turn method so the turtle doesn't turn around
-- when encountering obstacles
if not turtle.gotoSingleTurn(pt.x, pt.y, pt.z, pt.heading) then
-- if not turtle.gotoSingleTurn(pt.x, pt.y, pt.z, pt.heading) then
if not turtle.goto(pt) then
local bpt = Point.nearestTo(turtle.point, pt)
table.insert(blocks, bpt)