pathing heading possible fix

This commit is contained in:
kepler155c@gmail.com
2019-03-08 20:50:50 -05:00
parent 6f7e27827e
commit a569c2c900
3 changed files with 3 additions and 207 deletions

View File

@@ -173,8 +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.goto(pt) 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)