mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
#3711: Generate contracts only on network
This commit is contained in:
parent
cb4fd4cf90
commit
37e32ee0f8
@ -155,7 +155,7 @@ function getRandomReward(): ICodingContractReward {
|
||||
}
|
||||
|
||||
function getRandomServer(): BaseServer {
|
||||
const servers = GetAllServers();
|
||||
const servers = GetAllServers().filter((server: BaseServer) => server.serversOnNetwork.length !== 0);
|
||||
let randIndex = getRandomInt(0, servers.length - 1);
|
||||
let randServer = servers[randIndex];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user