mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
Save compatibility and updating version in Constants
This commit is contained in:
+2
-1
@@ -121,7 +121,8 @@ loadGame = function(saveObj) {
|
||||
if (saveObj.hasOwnProperty("VersionSave")) {
|
||||
try {
|
||||
var ver = JSON.parse(saveObj.VersionSave, Reviver);
|
||||
if (ver == "0.27.0" || ver == "0.27.1") {
|
||||
if (ver.startsWith("0.27.")) {
|
||||
console.log("Evaluating changes needed for version compatibility");
|
||||
if (Player.bitNodeN == null || Player.bitNodeN == 0) {
|
||||
Player.bitNodeN = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user