From b34930d3f24840bb3d5acba87944fe7d643db7a2 Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Wed, 9 Aug 2023 10:18:26 +0200 Subject: [PATCH] Add missing 'local' in playercontrols.lua --- 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 df4bfe877a..d4c4432320 100644 --- a/files/data/scripts/omw/playercontrols.lua +++ b/files/data/scripts/omw/playercontrols.lua @@ -106,7 +106,7 @@ local function processAttacking() end local function onFrame(dt) - controlsAllowed = input.getControlSwitch(input.CONTROL_SWITCH.Controls) and not core.isWorldPaused() + local controlsAllowed = input.getControlSwitch(input.CONTROL_SWITCH.Controls) and not core.isWorldPaused() if not movementControlsOverridden then if controlsAllowed then processMovement()