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

main
Nuckyz 2 years ago committed by GitHub
parent bf49acd535
commit 87b6d6ab12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save