1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Don't copy back already generated blocks on map generation

This commit is contained in:
kwolekr 2014-07-07 01:51:04 -04:00
parent 8b3ed78e53
commit a2e1b0fc7f
2 changed files with 8 additions and 7 deletions

View file

@ -543,10 +543,11 @@ public:
{m_map = map;}
void initialEmerge(v3s16 blockpos_min, v3s16 blockpos_max,
bool load_if_inexistent = true);
bool load_if_inexistent = true);
// This is much faster with big chunks of generated data
void blitBackAll(std::map<v3s16, MapBlock*> * modified_blocks);
void blitBackAll(std::map<v3s16, MapBlock*> * modified_blocks,
bool overwrite_generated = true);
protected:
bool m_create_area;