added dry shrub as plant if no grass is defined

This commit is contained in:
Sokomine 2015-07-31 03:07:48 +02:00
parent 48e653cb5f
commit ccf79200a2

View File

@ -97,6 +97,9 @@ mg_villages.add_village_type = function( type_name, v )
end
if( not( v.plant_type )) then
v.plant_type = 'default:grass_5';
if( not( minetest.registered_nodes[ v.plant_type ])) then
v.plant_type = 'default:dry_shrub';
end
end
if( not( v.plant_frequency )) then
v.plant_frequency = 3;