Worm bin model
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user