From e38d5e66476a7f1b774eb16af685b78a7076371b Mon Sep 17 00:00:00 2001 From: Armored-Dragon Date: Tue, 10 Oct 2023 06:53:22 -0500 Subject: [PATCH] Does not allow mouse capture if disabled. --- scripts/system/controllers/mouseLook.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/system/controllers/mouseLook.js b/scripts/system/controllers/mouseLook.js index 31a8499b0f1..751bda21509 100644 --- a/scripts/system/controllers/mouseLook.js +++ b/scripts/system/controllers/mouseLook.js @@ -160,7 +160,8 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon) } function mouseLookOn() { - Camera.captureMouse = true; + if (mouseLookEnabled) + Camera.captureMouse = true; } function mouseLookOff() {