make turtle go back to starting position after printing

This commit is contained in:
justuswolff
2026-02-16 20:49:36 +01:00
parent 29dc1253d6
commit 036f7a1027

View File

@@ -456,6 +456,10 @@ local function printdes(buf, dimensions)
cx,cz,direction = moveto(1,1,cx,cz,direction)
move("up")
end
moveto(0,0, cx,cz, direction)
for _=1,dimensions["y"]*(4)+1,1 do -- go back to starting position
move("down")
end
center(direction)
end