From e10a98c2451276dc06a6c5537d464907b4d68416 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 1 Jun 2024 18:26:23 +0700 Subject: [PATCH] Fix not disabling vibration when intensity is 0 --- src/modules/patches/vibration-adjust.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/patches/vibration-adjust.js b/src/modules/patches/vibration-adjust.js index ce9149a..97c428e 100644 --- a/src/modules/patches/vibration-adjust.js +++ b/src/modules/patches/vibration-adjust.js @@ -3,7 +3,7 @@ if (!window.BX_ENABLE_CONTROLLER_VIBRATION) { } const intensity = window.BX_VIBRATION_INTENSITY; -if (intensity && intensity < 1) { +if (intensity < 1) { e.leftMotorPercent *= intensity; e.rightMotorPercent *= intensity; e.leftTriggerMotorPercent *= intensity;