Skip to content

Commit 2ef039c

Browse files
fix: gracefully handle megastructures missing type
1 parent ee8bea0 commit 2ef039c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/src/lib/GameState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const bypassSchema = z.object({
130130
export type Bypass = WithId<z.infer<typeof bypassSchema>>;
131131

132132
const megastructureSchema = z.object({
133-
type: z.string(),
133+
type: z.string().optional(),
134134
});
135135

136136
/**

0 commit comments

Comments
 (0)