Fix "ignorePlayWithFriendsSection" patch

This commit is contained in:
redphx
2025-05-29 07:53:13 +07:00
parent fdb4e58b5d
commit 62cf045f05
3 changed files with 6 additions and 7 deletions

View File

@@ -695,12 +695,12 @@ true` + text;
return false;
}
index = PatcherUtils.lastIndexOf(str, 'return', index, 50);
index = PatcherUtils.lastIndexOf(str, '=>', index, 50);
if (index < 0) {
return false;
}
str = PatcherUtils.replaceWith(str, index, 'return', 'return null;');
str = PatcherUtils.replaceWith(str, index, '=>', '=> true ? null :');
return str;
},