mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
Fix broken ns filenames
This commit is contained in:
@@ -36,6 +36,7 @@ import { Faction } from "./Faction/Faction";
|
||||
import { safetlyCreateUniqueServer } from "./Server/ServerHelpers";
|
||||
import { SpecialServers } from "./Server/data/SpecialServers";
|
||||
import { v2APIBreak } from "./utils/v2APIBreak";
|
||||
import { Script } from "./Script/Script";
|
||||
|
||||
/* SaveObject.js
|
||||
* Defines the object used to save/load games
|
||||
@@ -490,6 +491,9 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
||||
if (ver < 23) {
|
||||
anyPlayer.currentWork = null;
|
||||
}
|
||||
if (ver < 24) {
|
||||
Player.getHomeComputer().scripts.forEach((s) => s.filename.endsWith(".ns") && (s.filename += ".js"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user