forgot to return when just turning at move

This commit is contained in:
Justus Wolff
2026-02-15 12:34:15 +01:00
parent c89023a2be
commit 4b2a5900e3

View File

@@ -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