Skip to content

Commit

Permalink
Regexify the replacement :harold:
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother committed Mar 15, 2023
1 parent 09289ff commit defb3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const imageGenerators = new PatchList<
for (let mod of modloader.loadedMods.values()) {
for (let asset of mod.assets) {
if (asset.endsWith('.json.patch') || asset.endsWith('.patch.json')) {
let patchedAsset = asset.replace('.patch', '');
let patchedAsset = asset.replace(/\.patch/g, '');
registerPatchstepsPatch(mod, asset, patchedAsset);
continue;
}
Expand Down

0 comments on commit defb3e8

Please sign in to comment.