mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
markUpdated() for Script
This commit is contained in:
@@ -68,6 +68,14 @@ export class Script {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks this script as having been updated. It will be recompiled next time something tries
|
||||
* to exec it.
|
||||
*/
|
||||
markUpdated() {
|
||||
this.module = "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Save a script from the script editor
|
||||
* @param {string} code - The new contents of the script
|
||||
@@ -86,7 +94,7 @@ export class Script {
|
||||
this.filename = filenameElem!.value;
|
||||
this.server = serverIp;
|
||||
this.updateRamUsage(otherScripts);
|
||||
this.module = "";
|
||||
this.markUpdated();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user