From 93e714f92a90685ea71951e0cf47763650d3608a Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 6 Sep 2025 21:41:49 +0200 Subject: [PATCH] add the mesh type feldweg nodes only if the base dirt block type exists in the game --- nodes_feldweg.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nodes_feldweg.lua b/nodes_feldweg.lua index fb516e9..494228a 100644 --- a/nodes_feldweg.lua +++ b/nodes_feldweg.lua @@ -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