When saving we were not saving the script content

This commit is contained in:
Jeffrey A. Robinson
2022-01-14 19:01:11 -08:00
parent 62ac7f7d17
commit 5f864c123b

View File

@@ -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;