pass replacements on to handle_schematics.clear_area
This commit is contained in:
parent
17ec2b52d8
commit
35a69b5002
@ -169,7 +169,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
|
|||||||
if( fields.remove_building and fields.remove_building ~= "" ) then
|
if( fields.remove_building and fields.remove_building ~= "" ) then
|
||||||
-- clear the space above ground, put dirt below ground, but keep the
|
-- clear the space above ground, put dirt below ground, but keep the
|
||||||
-- surface intact
|
-- 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
|
-- also clear the meta data to avoid strange effects
|
||||||
handle_schematics.clear_meta( start_pos, end_pos );
|
handle_schematics.clear_meta( start_pos, end_pos );
|
||||||
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
|
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
|
||||||
|
@ -357,7 +357,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
|
|||||||
if( fields.remove_building and fields.remove_building ~= "" ) then
|
if( fields.remove_building and fields.remove_building ~= "" ) then
|
||||||
-- clear the space above ground, put dirt below ground, but keep the
|
-- clear the space above ground, put dirt below ground, but keep the
|
||||||
-- surface intact
|
-- 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
|
-- also clear the meta data to avoid strange effects
|
||||||
handle_schematics.clear_meta( start_pos, end_pos );
|
handle_schematics.clear_meta( start_pos, end_pos );
|
||||||
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
|
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user