mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix mapgen block_is_underground heuristic
This commit is contained in:
parent
0a59605e05
commit
17d51a1609
@ -1328,9 +1328,7 @@ void make_block(BlockMakeData *data)
|
||||
//double gen_area_nodes = MAP_BLOCKSIZE*MAP_BLOCKSIZE * rel_volume;
|
||||
|
||||
// Horribly wrong heuristic, but better than nothing
|
||||
bool block_is_underground = (WATER_LEVEL /* local minimum ground level */ >
|
||||
MAP_BLOCKSIZE * (data->blockpos_max.X
|
||||
- data->blockpos_min.X + 1) / 2);
|
||||
bool block_is_underground = (WATER_LEVEL > node_max.Y);
|
||||
|
||||
/*
|
||||
Create a block-specific seed
|
||||
|
Loading…
Reference in New Issue
Block a user