BUGFIX: Generic Reviver does not handle Message class (#1796)

This commit is contained in:
catloversg 2024-11-25 04:46:18 +07:00 committed by GitHub
parent 294c9cbf4d
commit 9d8ac65aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,6 +16,7 @@ export function Reviver(_key: string, value: unknown): any {
// Known missing constructors with special handling. // Known missing constructors with special handling.
switch (value.ctor) { switch (value.ctor) {
case "AllServersMap": // Reviver removed in v0.43.1 case "AllServersMap": // Reviver removed in v0.43.1
case "Message": // Reviver removed in v1.6.4
case "Industry": // No longer part of save data since v2.3.0 case "Industry": // No longer part of save data since v2.3.0
case "Employee": // Entire object removed from game in v2.2.0 (employees abstracted) case "Employee": // Entire object removed from game in v2.2.0 (employees abstracted)
case "Company": // Reviver removed in v2.6.1 case "Company": // Reviver removed in v2.6.1