mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
getScriptRam now optionally take hostname/ip or default to localhost
This commit is contained in:
@@ -1994,7 +1994,7 @@ function NetscriptFunctions(workerScript) {
|
||||
}
|
||||
return suc;
|
||||
},
|
||||
getScriptRam : function (scriptname, ip) {
|
||||
getScriptRam : function (scriptname, ip=workerScript.serverIp) {
|
||||
if (workerScript.checkingRam) {
|
||||
if (workerScript.loadedFns.getScriptRam) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user