mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23: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,
|
createUniqueRandomIp,
|
||||||
AddToAllServers,
|
AddToAllServers,
|
||||||
GetServer,
|
GetServer,
|
||||||
|
renameServer,
|
||||||
} from "./Server/AllServers";
|
} from "./Server/AllServers";
|
||||||
import { Settings } from "./Settings/Settings";
|
import { Settings } from "./Settings/Settings";
|
||||||
import { loadStockMarket, StockMarket } from "./StockMarket/StockMarket";
|
import { loadStockMarket, StockMarket } from "./StockMarket/StockMarket";
|
||||||
@ -313,6 +314,10 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
|||||||
delete anyPlayer.companyPosition;
|
delete anyPlayer.companyPosition;
|
||||||
}
|
}
|
||||||
if (ver < "0.56.0") {
|
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) {
|
for (const q of anyPlayer.queuedAugmentations) {
|
||||||
if (q.name === "Graphene BranchiBlades Upgrade") {
|
if (q.name === "Graphene BranchiBlades Upgrade") {
|
||||||
q.name = "Graphene BrachiBlades Upgrade";
|
q.name = "Graphene BrachiBlades Upgrade";
|
||||||
|
Loading…
Reference in New Issue
Block a user