fixed bug with air nodes not beeing replaced with building nodes when no mg_villages is installed

This commit is contained in:
Sokomine 2020-08-18 02:27:07 +02:00
parent 49b311fe79
commit 6356f403b2

View File

@ -433,7 +433,7 @@ local function generate_building_what_to_place_here_and_how(t, node_content, new
end
-- do not overwrite plotmarkers
if( node_content == cid.c_plotmarker or node_content == cid.c_mob_spawner) then
if( node_content ~= cid.c_ignore and node_content ~= cid.c_air and (node_content == cid.c_plotmarker or node_content == cid.c_mob_spawner)) then
-- keep the old content
new_content = node_content;
end