This commit is contained in:
Dominic Zimmer 2020-07-06 19:12:01 +02:00
parent bd3b15a1e8
commit 75cd0336b8

View File

@ -499,7 +499,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
faceDir(0)
while (targetX > x) do
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
x += 1
x = x + 1
extraaction()
end
end
@ -507,7 +507,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
faceDir(2)
while (targetX < x) do
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
x -= 1
x = x - 1
extraaction()
end
end
@ -516,7 +516,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
faceDir(1)
while (targetZ > z) do
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
z += 1
z = z + 1
eztraaction()
end
end
@ -524,7 +524,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
faceDir(3)
while (targetZ < z) do
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
z -= 1
z = z - 1
eztraaction()
end
end