mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
fix two cases where markUpdated was not properly called
This commit is contained in:
parent
65331ab22e
commit
3ef9042051
@ -1139,7 +1139,7 @@ function NetscriptFunctions(workerScript) {
|
||||
var oldScript = destServer.scripts[i];
|
||||
oldScript.code = sourceScript.code;
|
||||
oldScript.ramUsage = sourceScript.ramUsage;
|
||||
oldScript.module = "";
|
||||
oldScript.module.markUpdated();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -534,7 +534,7 @@ export function loadAllRunningScripts() {
|
||||
|
||||
// Reset modules on all scripts
|
||||
for (let i = 0; i < server.scripts.length; ++i) {
|
||||
server.scripts[i].module = "";
|
||||
server.scripts[i].markUpdated();
|
||||
}
|
||||
|
||||
if (skipScriptLoad) {
|
||||
|
Loading…
Reference in New Issue
Block a user