Skip to content

Commit

Permalink
Fixes bitburner-official#1904 (CLI tab completion not listing purchas…
Browse files Browse the repository at this point in the history
…ed servers when not adjacent)
  • Loading branch information
Nerdpie committed Jan 7, 2025
1 parent d9dba2a commit 08248b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Terminal/getTabCompletionPossibilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
const addReachableServerNames = () => {
addGeneric({
iterable: GetAllServers()
.filter((server) => server.backdoorInstalled || currServ.serversOnNetwork.includes(server.hostname))
.filter(
(server) =>
server.backdoorInstalled || server.purchasedByPlayer || currServ.serversOnNetwork.includes(server.hostname),
)
.map((server) => server.hostname),
});
};
Expand Down

0 comments on commit 08248b5

Please sign in to comment.