mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-17 02:22:23 +01:00
Fix editor theme migration
This commit is contained in:
@ -118,7 +118,7 @@ export const CONSTANTS: {
|
|||||||
LatestUpdate: string;
|
LatestUpdate: string;
|
||||||
} = {
|
} = {
|
||||||
VersionString: "1.6.4",
|
VersionString: "1.6.4",
|
||||||
VersionNumber: 14,
|
VersionNumber: 15,
|
||||||
|
|
||||||
// Speed (in ms) at which the main loop is updated
|
// Speed (in ms) at which the main loop is updated
|
||||||
_idleSpeed: 200,
|
_idleSpeed: 200,
|
||||||
|
@ -23,6 +23,7 @@ import { LocationName } from "./Locations/data/LocationNames";
|
|||||||
import { SxProps } from "@mui/system";
|
import { SxProps } from "@mui/system";
|
||||||
import { PlayerObject } from "./PersonObjects/Player/PlayerObject";
|
import { PlayerObject } from "./PersonObjects/Player/PlayerObject";
|
||||||
import { pushGameSaved } from "./Electron";
|
import { pushGameSaved } from "./Electron";
|
||||||
|
import { defaultMonacoTheme } from "./ScriptEditor/ui/themes";
|
||||||
|
|
||||||
/* SaveObject.js
|
/* SaveObject.js
|
||||||
* Defines the object used to save/load games
|
* Defines the object used to save/load games
|
||||||
@ -394,8 +395,8 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
|||||||
delete anyPlayer.resleeves;
|
delete anyPlayer.resleeves;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ver < 14) {
|
if (ver < 15) {
|
||||||
delete (Settings as any).EditorTheme;
|
(Settings as any).EditorTheme = { ...defaultMonacoTheme };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user