This commit is contained in:
2025-09-08 14:21:02 +02:00
parent 0dd9313666
commit 1afec3f73e

View File

@@ -594,11 +594,6 @@ function megawallsClassStats() {
"losses" "losses"
] as const ] as const
const classesOther = [
"prestige",
"enderchest_rows"
] as const
const entries = new Map<string, z.ZodDefault<z.ZodNumber>>() const entries = new Map<string, z.ZodDefault<z.ZodNumber>>()
const classes = new Map< const classes = new Map<
string, string,
@@ -609,9 +604,7 @@ function megawallsClassStats() {
for (const stat of stats) { for (const stat of stats) {
entries.set(`${id}_${stat}`, z.number().default(0)) entries.set(`${id}_${stat}`, z.number().default(0))
} }
for (const klass of classesOther) { classes.set(id, z.looseObject({ prestige: z.number().default(0), enderchest_rows: z.number().default(0) }).optional())
classes.set(id, z.looseObject({ prestige: z.number().default(0), enderchest_rows: z.number().default(0) }).optional())
}
} }
return { return {