Validators using zod
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user