mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
BUGFIX: Missing migration code for v0.56.0 (#1790)
This commit is contained in:
parent
8c4fcfe045
commit
596a621c62
@ -13,6 +13,7 @@ import {
|
||||
createUniqueRandomIp,
|
||||
AddToAllServers,
|
||||
GetServer,
|
||||
renameServer,
|
||||
} from "./Server/AllServers";
|
||||
import { Settings } from "./Settings/Settings";
|
||||
import { loadStockMarket, StockMarket } from "./StockMarket/StockMarket";
|
||||
@ -313,6 +314,10 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
||||
delete anyPlayer.companyPosition;
|
||||
}
|
||||
if (ver < "0.56.0") {
|
||||
// In older versions, keys of AllServers are IP addresses instead of hostnames.
|
||||
for (const server of GetAllServers()) {
|
||||
renameServer(server.ip, server.hostname);
|
||||
}
|
||||
for (const q of anyPlayer.queuedAugmentations) {
|
||||
if (q.name === "Graphene BranchiBlades Upgrade") {
|
||||
q.name = "Graphene BrachiBlades Upgrade";
|
||||
|
Loading…
Reference in New Issue
Block a user