Fix not disabling vibration when intensity is 0

This commit is contained in:
redphx 2024-06-01 18:26:23 +07:00
parent c9b070253c
commit e10a98c245

View File

@ -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;