mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
fixed server exists returning true for non-existent IPs
This commit is contained in:
parent
b7b40d237a
commit
07c9f9e155
@ -1199,7 +1199,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
return updateStaticRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
return updateStaticRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
||||||
}
|
}
|
||||||
updateDynamicRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
updateDynamicRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
||||||
return (getServer(ip) !== null);
|
return (getServer(ip) != null);
|
||||||
},
|
},
|
||||||
fileExists : function(filename,ip=workerScript.serverIp) {
|
fileExists : function(filename,ip=workerScript.serverIp) {
|
||||||
if (workerScript.checkingRam) {
|
if (workerScript.checkingRam) {
|
||||||
|
Loading…
Reference in New Issue
Block a user