this repo has no description

core/patch: bleh

Changed files
+9 -3
packages
core
src
+9 -3
packages/core/src/patch.ts
···
}
}
+
let modified = false;
for (const [id, func] of Object.entries(entry)) {
if (func.__moonlight === true) continue;
···
}
}
-
if (!hardFailed) moduleString = replaced;
+
if (!hardFailed) {
+
moduleString = replaced;
+
modified = true;
+
}
moonlight.unpatched.delete(patch);
if (shouldRemove) patches.splice(i--, 1);
}
}
-
patchModule(id, patchedStr.join(", "), moduleString);
-
moduleCache[id] = moduleString;
+
if (modified) {
+
patchModule(id, patchedStr.join(", "), moduleString);
+
moduleCache[id] = moduleString;
+
}
try {
const parsed = moonlight.lunast.parseScript(id, moduleString);