handle diffrent tree availability (if default:sapling is present, but no jungle- or pinesapling)
This commit is contained in:
parent
4a20800c04
commit
de99360e17
@ -80,7 +80,11 @@ mg_villages.sapling_probability = {};
|
||||
|
||||
if(minetest.registered_nodes['default:sapling']) then
|
||||
mg_villages.sapling_probability[ minetest.get_content_id( 'default:sapling' ) ] = 25; -- suitable for a relatively dense forrest of normal trees
|
||||
end
|
||||
if(minetest.registered_nodes['default:junglesapling']) then
|
||||
mg_villages.sapling_probability[ minetest.get_content_id( 'default:junglesapling' ) ] = 40; -- jungletrees are a bit bigger and need more space
|
||||
end
|
||||
if(minetest.registered_nodes['default:pine_sapling']) then
|
||||
mg_villages.sapling_probability[ minetest.get_content_id( 'default:pine_sapling' ) ] = 30;
|
||||
end
|
||||
if( minetest.get_modpath( 'mg' )) then
|
||||
|
Loading…
x
Reference in New Issue
Block a user