From 93a9475b8d64eb0172ead64e24c722d8b38b08e8 Mon Sep 17 00:00:00 2001 From: gmcew <97335456+gmcew@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:23:01 +0000 Subject: [PATCH] Fix hashnet server list (#1779) Remove WD if TRP isn't installed. --- src/ui/React/ServerDropdown.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/React/ServerDropdown.tsx b/src/ui/React/ServerDropdown.tsx index 3e4bdedea..68812c871 100644 --- a/src/ui/React/ServerDropdown.tsx +++ b/src/ui/React/ServerDropdown.tsx @@ -7,11 +7,12 @@ import React from "react"; import { GetAllServers } from "../../Server/AllServers"; import { Server } from "../../Server/Server"; import { BaseServer } from "../../Server/BaseServer"; - +import { Player } from "@player"; import { HacknetServer } from "../../Hacknet/HacknetServer"; import Select, { SelectChangeEvent } from "@mui/material/Select"; import MenuItem from "@mui/material/MenuItem"; import Button from "@mui/material/Button"; +import { AugmentationName } from "@enums"; // TODO make this an enum when this gets converted to TypeScript export const ServerType = { @@ -41,7 +42,9 @@ export function ServerDropdown(props: IProps): React.ReactElement { case ServerType.All: return true; case ServerType.Foreign: - return s.hostname !== "home" && !purchased; + return s.hostname !== "home" && !purchased && !Player.hasAugmentation(AugmentationName.TheRedPill, true) + ? s.hostname !== "w0r1d_d43m0n" + : true; case ServerType.Owned: return purchased || s.hostname === "home"; case ServerType.Purchased: