From b9d38ae8d8c79381684752fc6c57bcd3328c2c2e Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Fri, 13 Jan 2023 23:26:09 +0100 Subject: [PATCH] Fix #7156 "Autorun is broken" --- files/data/scripts/omw/playercontrols.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/data/scripts/omw/playercontrols.lua b/files/data/scripts/omw/playercontrols.lua index f2be8151d3..823744887b 100644 --- a/files/data/scripts/omw/playercontrols.lua +++ b/files/data/scripts/omw/playercontrols.lua @@ -133,7 +133,7 @@ local function onInputAction(action) elseif action == input.ACTION.Use then startAttack = true elseif action == input.ACTION.AutoMove and not movementControlsOverridden then - autoMove = true + autoMove = not autoMove elseif action == input.ACTION.AlwaysRun and not movementControlsOverridden then settings:set('alwaysRun', not settings:get('alwaysRun')) elseif action == input.ACTION.Sneak and not movementControlsOverridden then