Patch#all option to patch duplicate modules (#99)

This commit is contained in:
Nuckyz 2022-10-13 20:47:10 -03:00 committed by GitHub
parent bf49acd535
commit 87b6d6ab12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

@ -12,8 +12,9 @@ export interface PatchReplacement {
export interface Patch { export interface Patch {
plugin: string; plugin: string;
find: string, find: string;
replacement: PatchReplacement | PatchReplacement[]; replacement: PatchReplacement | PatchReplacement[];
all?: boolean;
} }
export interface PluginAuthor { export interface PluginAuthor {

@ -127,7 +127,7 @@ function patchPush() {
patchedBy.delete(patch.plugin); patchedBy.delete(patch.plugin);
} }
} }
patches.splice(i--, 1); if (!patch.all) patches.splice(i--, 1);
} }
} }
} }