no snow or saplings below water level

master
Sokomine 2014-09-15 05:18:39 +02:00
parent d909df59bd
commit 11e12f761b
1 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,9 @@ mg_villages.lower_or_raise_terrain_at_point = function( x, z, target_height, min
end
end
if( has_snow ) then
if( target_height < 1 ) then
-- no trees or snow below water level
elseif( has_snow ) then
data[ a:index( x, target_height+1, z)] = cid.c_snow;
elseif( tree and not( mg_villages.ethereal_trees ) and treepos) then
data[ a:index( x, target_height+1, z)] = cid.c_sapling