diff --git a/src/plugins/secretRingTone/index.ts b/src/plugins/secretRingTone/index.ts index 8f0176f8..9c3956a8 100644 --- a/src/plugins/secretRingTone/index.ts +++ b/src/plugins/secretRingTone/index.ts @@ -14,10 +14,11 @@ export default definePlugin({ authors: [Devs.AndrewDLO, Devs.FieryFlames], patches: [ { - find: "call_ringing_beat\"", + find: '"call_ringing_beat"', replacement: { - match: /500===\i\(\)\.random\(1,1e3\)/, - replace: "true" + // FIXME Remove === alternative when it hits stable + match: /500(!==|===)\i\(\)\.random\(1,1e3\)/, + replace: (_, predicate) => predicate === "!==" ? "false" : "true", } }, ],