diff --git a/src/API.ts b/src/API.ts index d3d3f2a..85bb809 100644 --- a/src/API.ts +++ b/src/API.ts @@ -286,8 +286,9 @@ export class UserAPI { * @param from - The script to copy from * @param to - The script to copy to */ - this.app.universes[this.app.selected_universe].locals[to] = - this.app.universes[this.app.selected_universe].locals[from]; + this.app.universes[this.app.selected_universe].locals[to] = { + ...this.app.universes[this.app.selected_universe].locals[from], + }; }; cps = this.copy_script;