1
0
mirror of https://github.com/Sokomine/cottages.git synced 2026-01-10 19:15:45 +01:00

add the mesh type feldweg nodes only if the base dirt block type exists in the game

This commit is contained in:
Sokomine
2025-09-06 21:41:49 +02:00
parent 439e074639
commit 93e714f92a

View File

@@ -575,10 +575,12 @@ elseif( cottages_feldweg_mode == "mesh"
}
for k, v in pairs(variants) do
cottages.register_nodes_mesh(v[4], v[1], v[2], v[3], cottages_feldweg_mode, v[6], v[7], v[8])
register_recipes(true, v[4], v[5])
-- register the two slope nodes
cottages.register_nodes_slope(v[4], v[1], v[2], v[3], cottages_feldweg_mode, v[6], v[7], v[8])
if(minetest.registered_nodes[v[5]]) then
cottages.register_nodes_mesh(v[4], v[1], v[2], v[3], cottages_feldweg_mode, v[6], v[7], v[8])
register_recipes(true, v[4], v[5])
-- register the two slope nodes
cottages.register_nodes_slope(v[4], v[1], v[2], v[3], cottages_feldweg_mode, v[6], v[7], v[8])
end
end
end