From 8fb4883a82b897e1528d6d970b42625accc5e9c4 Mon Sep 17 00:00:00 2001 From: 2767mr <2767mr@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:51:45 +0100 Subject: [PATCH] My first and final commit here --- runtime/src/resources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }