Compare commits
1 commit
4853d3c729
...
e200290de4
Author | SHA1 | Date | |
---|---|---|---|
Théophile Bastian | e200290de4 |
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue