From 11e12f761bd640d74074dabe60a079c73fb701a3 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 15 Sep 2014 05:18:39 +0200 Subject: [PATCH] no snow or saplings below water level --- mapgen.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mapgen.lua b/mapgen.lua index 9aa2cd2..7e2e112 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -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