mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Merge pull request #3740 from xRalic/fixBadContracts
MISC: FIX #3711 Generate contracts only on network
This commit is contained in:
commit
8ea33c67fc
@ -155,7 +155,7 @@ function getRandomReward(): ICodingContractReward {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getRandomServer(): BaseServer {
|
function getRandomServer(): BaseServer {
|
||||||
const servers = GetAllServers();
|
const servers = GetAllServers().filter((server: BaseServer) => server.serversOnNetwork.length !== 0);
|
||||||
let randIndex = getRandomInt(0, servers.length - 1);
|
let randIndex = getRandomInt(0, servers.length - 1);
|
||||||
let randServer = servers[randIndex];
|
let randServer = servers[randIndex];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user