mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Fixed loadAllRunningScripts(), now seems to be working properly
This commit is contained in:
@@ -85,9 +85,6 @@ function killWorkerScript(scriptName, serverIp) {
|
||||
function addWorkerScript(script, server) {
|
||||
var filename = script.filename;
|
||||
|
||||
//Add script onto server's runningScripts
|
||||
server.runningScripts.push(filename);
|
||||
|
||||
//Update server's ram usage
|
||||
server.ramUsed += script.ramUsage;
|
||||
|
||||
@@ -98,6 +95,7 @@ function addWorkerScript(script, server) {
|
||||
s.serverIp = server.ip;
|
||||
workerScripts.push(s);
|
||||
console.log("Pushed script onto workerScripts");
|
||||
return;
|
||||
}
|
||||
|
||||
runScriptsLoop();
|
||||
Reference in New Issue
Block a user