forgot to return when just turning at move
This commit is contained in:
@@ -206,9 +206,11 @@ end
|
||||
local function move(direction)
|
||||
if direction == "left" then
|
||||
turtle.turnLeft()
|
||||
return
|
||||
end
|
||||
if direction == "right" then
|
||||
turtle.turnRight()
|
||||
return
|
||||
end
|
||||
while true do
|
||||
if turtle.getFuelLevel() == 0 then
|
||||
|
||||
Reference in New Issue
Block a user