Skip to content

Commit

Permalink
BUGFIX: Missing migration code for v0.56.0 (bitburner-official#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg authored Nov 22, 2024
1 parent 8c4fcfe commit 596a621
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SaveObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
createUniqueRandomIp,
AddToAllServers,
GetServer,
renameServer,
} from "./Server/AllServers";
import { Settings } from "./Settings/Settings";
import { loadStockMarket, StockMarket } from "./StockMarket/StockMarket";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 596a621

Please sign in to comment.