From 08248b504a602334b32819a327256b9b6a28242f Mon Sep 17 00:00:00 2001 From: Nerdpie Date: Tue, 7 Jan 2025 18:03:36 -0500 Subject: [PATCH] Fixes #1904 (CLI tab completion not listing purchased servers when not adjacent) --- src/Terminal/getTabCompletionPossibilities.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Terminal/getTabCompletionPossibilities.ts b/src/Terminal/getTabCompletionPossibilities.ts index 7c80f39f24..3a98df1313 100644 --- a/src/Terminal/getTabCompletionPossibilities.ts +++ b/src/Terminal/getTabCompletionPossibilities.ts @@ -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), }); };