Skip to content

Commit

Permalink
fix: notrack failing patches (Vendicated#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeguminSama authored and Vendicated committed Oct 25, 2023
1 parent cb2532d commit 4d8e4e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/plugins/_core/noTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ export default definePlugin({
replace: "this._intervalId=undefined&&"
},
{
match: /(?<=increment=function\(\i\){)/,
replace: "return;"
match: /(increment\(\i\){)/,
replace: "$1return;"
}
]
},
{
find: ".installedLogHooks)",
replacement: {
match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/,
replace: "if(false)"
// if getDebugLogging() returns false, the hooks don't get installed.
match: "getDebugLogging(){",
replace: "getDebugLogging(){return false;"
}
},
]
Expand Down

0 comments on commit 4d8e4e6

Please sign in to comment.