reset direction under moveto when going forward or backward

This commit is contained in:
Justus Wolff
2026-02-15 19:58:12 +01:00
parent aed59c4863
commit 5b530828d0

View File

@@ -308,11 +308,13 @@ local function moveto(x,y,cx,cz,direction)
while x ~= cx or y ~= cz do
if cx < x then -- x
center(direction)
direction = 0
cx = cx + 1
move("forward")
end
if cx > x then
center(direction)
direction = 0
cx = cx - 1
move("back")
end