mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-28 10:33:47 +01:00
fix bug with hacknet servers and grow
This commit is contained in:
parent
f579ee398b
commit
a420a87eba
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -836,9 +836,8 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
}
|
||||
|
||||
const host = getServer(workerScript.serverIp);
|
||||
if (!(host instanceof Server)) {
|
||||
workerScript.log("grow", "Cannot be executed on this server.");
|
||||
return false;
|
||||
if (host === null) {
|
||||
throw new Error("Workerscript host is null");
|
||||
}
|
||||
|
||||
// No root access or skill level too low
|
||||
|
Loading…
Reference in New Issue
Block a user