diff options
-rw-r--r-- | cactus.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -19,7 +19,7 @@ assert(ensure_modem()) local POS = vector.new(gps.locate()) local function get_facing() - while turtle.detect() turtle.turnRight() end + while turtle.detect() do turtle.turnRight() end turtle.forward() local newpos = vector.new(gps.locate()) turtle.back() @@ -48,10 +48,9 @@ for i=1,4 do print(i,rotatev(v,i)) end local function moveby_xz(dv) -- y component of dv is ignored +end local datum = vector.new(-18, 128, -1837) -local dx = w-datum -moveBy(dx) |