Compare commits

..

1 commit

Author SHA1 Message Date
Théophile Bastian e200290de4 Mine: write movement functions 2020-08-18 19:49:11 +02:00

View file

@ -169,7 +169,7 @@ function find_next_shaft()
while true do
for hei=1,MAX_HEIGHT-1 do
if (hei % 3) == 0 then
if (height % 3) == 0 then
if turtle.detect() then
return
end
@ -190,8 +190,8 @@ function find_next_shaft()
end
turn_abs(0)
for hei=MAX_HEIGHT-1,0,-1 do
if (hei % 3) ~= 0 then
for hei=MAX_HEIGHT-1,1,-1 do
if (height % 3) ~= 0 then
if turtle.detect() then
return
end