mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
markUpdated() for Script
This commit is contained in:
@@ -1139,7 +1139,7 @@ function NetscriptFunctions(workerScript) {
|
||||
var oldScript = destServer.scripts[i];
|
||||
oldScript.code = sourceScript.code;
|
||||
oldScript.ramUsage = sourceScript.ramUsage;
|
||||
oldScript.module = "";
|
||||
oldScript.markUpdated();;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1901,6 +1901,7 @@ function NetscriptFunctions(workerScript) {
|
||||
}
|
||||
mode === "w" ? script.code = data : script.code += data;
|
||||
script.updateRamUsage(server.scripts);
|
||||
script.markUpdated();
|
||||
} else {
|
||||
// Write to text file
|
||||
let txtFile = getTextFile(fn, server);
|
||||
|
||||
Reference in New Issue
Block a user