From 5b530828d027773005d03e2e9f991f3bb2b274e8 Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Sun, 15 Feb 2026 19:58:12 +0100 Subject: [PATCH] reset direction under moveto when going forward or backward --- src/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.lua b/src/main.lua index 6c5958a..077e4dd 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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