From 5f864c123bafa1a8d2a629998506093c2b389760 Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Robinson" Date: Fri, 14 Jan 2022 19:01:11 -0800 Subject: [PATCH] When saving we were not saving the script content --- src/Script/Script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Script/Script.ts b/src/Script/Script.ts index 7b055c025..d6b13dbff 100644 --- a/src/Script/Script.ts +++ b/src/Script/Script.ts @@ -118,7 +118,7 @@ export class Script { */ saveScript(player: IPlayer, filename: string, code: string, hostname: string, otherScripts: Script[]): void { // Update code and filename - this.code = Script.formatCode(this.code); + this.code = Script.formatCode(code); this.filename = filename; this.server = hostname;