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