diff --git a/runtime/src/resources.ts b/runtime/src/resources.ts index d2a5404..a8d5025 100644 --- a/runtime/src/resources.ts +++ b/runtime/src/resources.ts @@ -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/g, ''); + let patchedAsset = asset.slice(0, -'.json.patch'.length) + '.json'; registerPatchstepsPatch(mod, asset, patchedAsset); continue; }