Validators using zod

This commit is contained in:
2026-10-25 12:41:46 -03:00
parent 31ae2973d7
commit 4fad43d9cc
24 changed files with 1242 additions and 1788 deletions
+2 -2
View File
@@ -406,12 +406,12 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
}
for (const { file, json } of mod.noise_settings ?? []) {
const refs = new_refs();
noise_settings_refs(json as unknown as Record<string, unknown>, refs);
noise_settings_refs(json, refs);
check_worldgen("noise settings", file, json.id, refs);
}
for (const { file, json } of mod.biome_sources ?? []) {
const refs = new_refs();
biome_source_refs(json as unknown as Record<string, unknown>, refs);
biome_source_refs(json, refs);
check_worldgen("biome source", file, json.id, refs);
// what its rules look at, in every generator that uses it
const users = all_noise_settings.filter((settings) => settings.biome_source === (json.extends ?? json.id));