More hotfix

* Fix empty solution for all valid math expressions
This commit is contained in:
omuretsu
2023-05-28 05:25:09 -04:00
parent 8e4492685d
commit ae8f26f03b
5 changed files with 8 additions and 20 deletions
-13
View File
@@ -75,19 +75,6 @@ export class Script implements ContentFile {
this.dependencies = new Map();
}
/**
* Save a script from the script editor
* @param filename The new filepath for this Script
* @param code The unformatted code to save
* @param hostname The server to save the script to
*/
saveScript(filename: ScriptFilePath, code: string, hostname: string): void {
this.code = code;
this.invalidateModule();
this.filename = filename;
this.server = hostname;
}
/** Gets the ram usage, while also attempting to update it if it's currently null */
getRamUsage(otherScripts: Map<ScriptFilePath, Script>): number | null {
if (this.ramUsage) return this.ramUsage;