Use new name for place_building_from_file to prevent crash.

This commit is contained in:
auouymous 2020-10-06 05:57:08 -06:00
parent 69ac3f2691
commit 0e843180af
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
else
-- actually place it (disregarding mirroring)
local error_msg = handle_schematics.place_building_from_file(
local error_msg = handle_schematics.place_building_from_file_or_cache(
start_pos,
end_pos,
building_name,

View File

@ -363,7 +363,7 @@ mg_villages.plotmarker_formspec = function( pos, formname, fields, player )
formspec = formspec.."label[3,3;"..S("The plot has been cleared.").."]";
else
-- actually place it (disregarding mirroring)
local error_msg = handle_schematics.place_building_from_file(
local error_msg = handle_schematics.place_building_from_file_or_cache(
start_pos,
end_pos,
building_name,