mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-28 22:25:20 +01:00
Allow mapgen chunk size to be non-cubic (#16429)
This commit is contained in:
@@ -775,12 +775,10 @@ void MMVManip::initialEmerge(v3s16 p_min, v3s16 p_max, bool load_if_inexistent)
|
||||
(p_min*MAP_BLOCKSIZE, (p_max+1)*MAP_BLOCKSIZE-v3s16(1,1,1));
|
||||
|
||||
u32 size_MB = block_area_nodes.getVolume() * sizeof(MapNode) / 1000000U;
|
||||
if(size_MB >= 1)
|
||||
{
|
||||
infostream<<"initialEmerge: area: ";
|
||||
if (size_MB >= 4) {
|
||||
infostream << "initialEmerge: area: ";
|
||||
block_area_nodes.print(infostream);
|
||||
infostream<<" ("<<size_MB<<"MB)";
|
||||
infostream<<std::endl;
|
||||
infostream << " (" << size_MB << "MB)" << std::endl;
|
||||
}
|
||||
|
||||
std::map<v3s16, bool> had_blocks;
|
||||
|
||||
Reference in New Issue
Block a user