1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Fix covered node rendering, update doc. Fix default inventory image for covered/sunken nodes.

This commit is contained in:
SFENCE 2024-01-25 16:59:16 +01:00
parent a91e532b29
commit d14f2f4bdd
4 changed files with 20 additions and 87 deletions

View file

@ -150,14 +150,6 @@ local function preprocess_node(nodedef)
if nodedef.liquidtype == "flowing" then
nodedef.paramtype2 = "flowingliquid"
end
if itemdef.type == "node" and (itemdef.drawtype == "sunken" or itemdef.drawtype == "covered") then
if not core.registered_nodes[itemdef.inner_node] then
error("Unable to register item " .. name .. ": Inner node not registered: " .. itemdef.inner_node)
end
else
itemdef.inner_node = nil
end
end
local function preprocess_craft(itemdef)