From 91deba793c30bf660ae5350e15c0962b463e523b Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 18 Dec 2024 06:08:09 +0700 Subject: [PATCH] Fix "patchShowSensorControls" patch --- src/modules/patcher/patcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/patcher/patcher.ts b/src/modules/patcher/patcher.ts index 06e0ec0..ff7d477 100755 --- a/src/modules/patcher/patcher.ts +++ b/src/modules/patcher/patcher.ts @@ -541,12 +541,12 @@ BxLogger.info('patchRemotePlayMkb', ${configsVar}); }, patchShowSensorControls(str: string) { - let text = '{shouldShowSensorControls:'; + let text = ',{shouldShowSensorControls:'; if (!str.includes(text)) { return false; } - const newCode = `{shouldShowSensorControls: (window.BX_EXPOSED && window.BX_EXPOSED.shouldShowSensorControls) ||`; + const newCode = `,{shouldShowSensorControls: (window.BX_EXPOSED && window.BX_EXPOSED.shouldShowSensorControls) ||`; str = str.replace(text, newCode); return str;