always save data of villages if something changed
parent
82557a6671
commit
fbca6fce26
|
@ -813,7 +813,6 @@ mg_villages.place_villages_via_voxelmanip = function( villages, minp, maxp, vm,
|
||||||
tmin = minp;
|
tmin = minp;
|
||||||
tmax = maxp;
|
tmax = maxp;
|
||||||
end
|
end
|
||||||
-- TODO: this needs a modified version for the individual, standalone buildings - or needs a diffrent noise function!
|
|
||||||
-- will set village_area to N where .. is:
|
-- will set village_area to N where .. is:
|
||||||
-- 0: not part of any village
|
-- 0: not part of any village
|
||||||
-- 1: flattened area around the village; plants (wheat, cotton, trees, grass, ...) may be planted here
|
-- 1: flattened area around the village; plants (wheat, cotton, trees, grass, ...) may be planted here
|
||||||
|
@ -946,9 +945,8 @@ mg_villages.place_villages_via_voxelmanip = function( villages, minp, maxp, vm,
|
||||||
village_data_updated = true;
|
village_data_updated = true;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if( village_data_updated ) then
|
-- always save the changed village data
|
||||||
mg_villages.save_data();
|
mg_villages.save_data();
|
||||||
end
|
|
||||||
t1 = time_elapsed( t1, 'save village data' );
|
t1 = time_elapsed( t1, 'save village data' );
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue