Render geo models in items
This commit is contained in:
+2
-1
@@ -361,7 +361,8 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
|
||||
errors.push(`${file}: item ${json.id} has no texture, and no block of this mod gives it an item`);
|
||||
}
|
||||
for (const texture of Object.values(json.data_textures ?? {})) uses(file, texture, "texture");
|
||||
if (json.model) uses(file, json.model, "model");
|
||||
// an entity model is drawn in the item's texture
|
||||
if (json.model && !entity_model_owners.has(json.model)) uses(file, json.model, "model");
|
||||
if (json.places) uses(file, json.places, "block");
|
||||
if (json.food?.returns) uses(file, json.food.returns, "item");
|
||||
for (const layer of json.layers ?? []) uses(file, layer.texture, "texture");
|
||||
|
||||
Reference in New Issue
Block a user