Fluid containers
This commit is contained in:
@@ -323,6 +323,12 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
|
||||
if (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");
|
||||
if (json.layers && json.model) {
|
||||
errors.push(
|
||||
`${file}: item ${json.id} has a model, so it isn't drawn flat and its layers wouldn't show`,
|
||||
);
|
||||
}
|
||||
if (json.worn) {
|
||||
const { model, texture, slim_model, slim_texture } = json.worn;
|
||||
for (const id of [model, slim_model]) {
|
||||
|
||||
Reference in New Issue
Block a user