From b44050cfec2a8e714254e1d764d10af0c13f2381 Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Tue, 16 May 2023 08:36:14 -0400 Subject: [PATCH] Fix oldcorp loading --- src/utils/JSONReviver.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/JSONReviver.ts b/src/utils/JSONReviver.ts index 7c73c5394..93417b7d0 100644 --- a/src/utils/JSONReviver.ts +++ b/src/utils/JSONReviver.ts @@ -31,6 +31,9 @@ export function Reviver(_key: string, value: unknown): any { case "AllServersMap": console.warn("Converting AllServersMap for v0.43.1"); return value.data; + case "Industry": + console.warn("Converting a corp from pre-2.3"); + return value.data; // Will immediately be overwritten by v2.3 save migration code } // Missing constructor with no special handling. Throw error. throw new Error(`Could not locate constructor named ${value.ctor}. If the save data is valid, this is a bug.`);