mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Merge branch 'dev' of https://github.com/bitburner-official/bitburner-src into dev
This commit is contained in:
commit
a03a441906
@ -68,6 +68,7 @@ export const renamePurchasedServer = (hostname: string, newName: string): void =
|
||||
return arr.map((v) => (v === old ? next : v));
|
||||
};
|
||||
Player.purchasedServers = replace(Player.purchasedServers, hostname, newName);
|
||||
if (Player.currentServer === hostname) Player.currentServer = newName;
|
||||
const home = Player.getHomeComputer();
|
||||
home.serversOnNetwork = replace(home.serversOnNetwork, hostname, newName);
|
||||
server.serversOnNetwork = replace(server.serversOnNetwork, hostname, newName);
|
||||
|
Loading…
Reference in New Issue
Block a user