Worm bin model

This commit is contained in:
2026-10-12 18:58:38 -03:00
parent 99bdcaeffc
commit 038b6d2caa
16 changed files with 447 additions and 39 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export function import_items(input: string, options: ImportOptions = {}): Import
if (options.output === undefined) throw new Error("--output is needed for items");
const remaps = options.remaps ?? DEFAULT_REMAPS;
// an item is a model directly in models/item, the folders under it are parts of models
const files = input_files(input, "models", ".json", options.namespace)
const files = input_files(input, "models", ".json", options.namespace, options.output)
.filter(({ root, file }) => /^item\/[^/]+$/.test(location_of(root, file, ".json").path));
const roots = [...new Set(files.map(({ root }) => root))];
const read = model_source(models_near(input, roots, options));