pass replacements on to handle_schematics.clear_area

master
Sokomine 2020-04-08 03:16:24 +02:00
parent 17ec2b52d8
commit 35a69b5002
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
if( fields.remove_building and fields.remove_building ~= "" ) then
-- clear the space above ground, put dirt below ground, but keep the
-- surface intact
handle_schematics.clear_area( start_pos, end_pos, pos.y-1);
handle_schematics.clear_area( start_pos, end_pos, pos.y-1, replacements);
-- also clear the meta data to avoid strange effects
handle_schematics.clear_meta( start_pos, end_pos );
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";

View File

@ -357,7 +357,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
if( fields.remove_building and fields.remove_building ~= "" ) then
-- clear the space above ground, put dirt below ground, but keep the
-- surface intact
handle_schematics.clear_area( start_pos, end_pos, pos.y-1);
handle_schematics.clear_area( start_pos, end_pos, pos.y-1, replacements);
-- also clear the meta data to avoid strange effects
handle_schematics.clear_meta( start_pos, end_pos );
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";