diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 61718d910..ceef9c610 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -1345,8 +1345,7 @@ void make_block(BlockMakeData *data) /* Create a block-specific seed */ - /*u32 blockseed = (u32)(data->seed%0x100000000ULL) + full_node_min.Z*38134234 - + full_node_min.Y*42123 + full_node_min.X*23;*/ + u32 blockseed = get_blockseed(data->seed, full_node_min); /* Cache some ground type values for speed @@ -1444,6 +1443,42 @@ void make_block(BlockMakeData *data) #endif }//timer1 + + /* + Add blobs of dirt and gravel underground + */ + { + PseudoRandom pr(blockseed+983); + for(int i=0; i -32 && pr.range(0,1) == 0) + n1 = MapNode(c_dirt); + else + n1 = MapNode(c_gravel); + for(int x1=0; x1