From 3daab28245ce0e3f76a62b528307881d1920baa2 Mon Sep 17 00:00:00 2001 From: rampa3 <68955305+rampa3@users.noreply.github.com> Date: Tue, 6 Jun 2023 22:49:04 +0200 Subject: [PATCH] Added before forgotten condition to check if mouse look is enabled by default before auto-starting it. --- scripts/system/controllers/mouseLook.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/mouseLook.js b/scripts/system/controllers/mouseLook.js index 33901eb9e0..a8126a8e69 100644 --- a/scripts/system/controllers/mouseLook.js +++ b/scripts/system/controllers/mouseLook.js @@ -7,8 +7,10 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon) var oldMode; var mouseLookEnabled = false; - - mouseLookOn(); + + if (mouseLookEnabled) { + mouseLookOn(); + } Controller.keyPressEvent.connect(function(event) { if (event.text === 'm') {