fix(gateway): show legacy season states
This commit is contained in:
@@ -45,6 +45,7 @@ export const zWorldStateMeta = z.object({
|
||||
turntime: z.string().optional(),
|
||||
otherTextInfo: z.string().optional(),
|
||||
isUnited: z.number().optional(),
|
||||
isunited: z.number().optional(),
|
||||
autorun_user: z
|
||||
.object({
|
||||
limit_minutes: z.number().optional(),
|
||||
|
||||
@@ -52,7 +52,7 @@ export const lobbyRouter = router({
|
||||
opentime: worldState.meta.opentime ?? '',
|
||||
turntime: worldState.meta.turntime ?? '',
|
||||
otherTextInfo: worldState.meta.otherTextInfo ?? '',
|
||||
isUnited: worldState.meta.isUnited ?? 0,
|
||||
isUnited: worldState.meta.isunited ?? worldState.meta.isUnited ?? 0,
|
||||
selectionPoolEnabled: isSelectionPoolWorld(rawWorldState),
|
||||
npcPossessionEnabled: worldState.config.npcMode === 1,
|
||||
myGeneral,
|
||||
|
||||
@@ -88,7 +88,7 @@ const loadWorldTrendSnapshot = async (ctx: GameApiContext): Promise<WorldTrendSn
|
||||
opentime: meta.opentime ?? '',
|
||||
turntime: meta.turntime ?? '',
|
||||
otherTextInfo: meta.otherTextInfo ?? '',
|
||||
isUnited: meta.isUnited ?? 0,
|
||||
isUnited: meta.isunited ?? meta.isUnited ?? 0,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user