mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-20 14:43:48 +01:00
Fix workForFaction invalid worktype case
When invalid work type, the function should return false instead of true
This commit is contained in:
parent
acfd164927
commit
b9caddeeef
@ -1104,6 +1104,7 @@ export function NetscriptSingularity(
|
||||
return true;
|
||||
default:
|
||||
workerScript.log("workForFaction", () => `Invalid work type: '${type}`);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user