Fix oldcorp loading

This commit is contained in:
omuretsu 2023-05-16 08:36:14 -04:00
parent f4655b8e1b
commit b44050cfec

@ -31,6 +31,9 @@ export function Reviver(_key: string, value: unknown): any {
case "AllServersMap": case "AllServersMap":
console.warn("Converting AllServersMap for v0.43.1"); console.warn("Converting AllServersMap for v0.43.1");
return value.data; 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. // 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.`); throw new Error(`Could not locate constructor named ${value.ctor}. If the save data is valid, this is a bug.`);