mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
fixed getServer instead
This commit is contained in:
parent
07c9f9e155
commit
bb68fa5806
@ -1199,7 +1199,7 @@ function NetscriptFunctions(workerScript) {
|
||||
return updateStaticRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
||||
}
|
||||
updateDynamicRam("serverExists", CONSTANTS.ScriptGetServerRamCost);
|
||||
return (getServer(ip) != null);
|
||||
return (getServer(ip) !== null);
|
||||
},
|
||||
fileExists : function(filename,ip=workerScript.serverIp) {
|
||||
if (workerScript.checkingRam) {
|
||||
|
@ -873,9 +873,11 @@ function GetServerByHostname(hostname) {
|
||||
function getServer(s) {
|
||||
if (!isValidIPAddress(s)) {
|
||||
return GetServerByHostname(s);
|
||||
} else {
|
||||
}
|
||||
if(AllServers[s] !== undefined) {
|
||||
return AllServers[s];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//Debugging tool
|
||||
|
Loading…
Reference in New Issue
Block a user