Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (parentModel.textures) { Object.assign(raw.textures, parentModel.textures); }
}
raw.ambientocclusion = raw.ambientocclusion || false;
raw.overrides = raw.overrides || [];
delete raw.parent;
const model: BlockModel.Resolved = raw as any;
this.models[modelPath] = model;
const reg = this.textures;
for (const variant of Object.keys(model.textures)) {
const texPath = ModelLoader.findRealTexturePath(model, variant);
if (texPath) {
const load = await this.manager.load(ResourceLocation.ofTexturePath(texPath));
if (load) {
reg[texPath] = load;
}
}
}
return model;
}
}