Skip to content

Commit

Permalink
back up mod before stripping ids, whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 15, 2024
1 parent 23847ab commit fc66877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/handlers/moddata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ function stripIds(modData: IModKit) {
}

export function formatMod(modData: IModKit): IModKit {
const backup = structuredClone(modData);

stripIds(modData);

const exported: IModKit = {
meta: {
...structuredClone(modData.meta),
_backup: structuredClone(modData),
_backup: backup,
},

npcs: formatNPCs(modData.npcs),
Expand Down

0 comments on commit fc66877

Please sign in to comment.