mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +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));
|
return arr.map((v) => (v === old ? next : v));
|
||||||
};
|
};
|
||||||
Player.purchasedServers = replace(Player.purchasedServers, hostname, newName);
|
Player.purchasedServers = replace(Player.purchasedServers, hostname, newName);
|
||||||
|
if (Player.currentServer === hostname) Player.currentServer = newName;
|
||||||
const home = Player.getHomeComputer();
|
const home = Player.getHomeComputer();
|
||||||
home.serversOnNetwork = replace(home.serversOnNetwork, hostname, newName);
|
home.serversOnNetwork = replace(home.serversOnNetwork, hostname, newName);
|
||||||
server.serversOnNetwork = replace(server.serversOnNetwork, hostname, newName);
|
server.serversOnNetwork = replace(server.serversOnNetwork, hostname, newName);
|
||||||
|
Loading…
Reference in New Issue
Block a user