Fluid containers

This commit is contained in:
2026-10-25 15:02:31 -03:00
parent fc27771a92
commit 26b59a1899
24 changed files with 486 additions and 82 deletions
+6
View File
@@ -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]) {