From f144fac81ecbcf5e041a27e597d213cda21d01f9 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 3 May 2024 18:09:31 +0700 Subject: [PATCH] Fix not clearing "appliedPatches" correctly --- src/modules/patcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/patcher.ts b/src/modules/patcher.ts index 787ce1a..5dbfa50 100644 --- a/src/modules/patcher.ts +++ b/src/modules/patcher.ts @@ -558,6 +558,8 @@ export class Patcher { const caches: { [key: string]: string[] } = {}; for (let id in item[1]) { + appliedPatches = []; + const cachedPatches = PatcherCache.getPatches(id); if (cachedPatches) { patchesToCheck = cachedPatches; @@ -572,8 +574,6 @@ export class Patcher { } // console.log(patchesToCheck); - - appliedPatches = []; const func = item[1][id]; let str = func.toString();