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:
parent
8b3ed78e53
commit
a2e1b0fc7f
2 changed files with 8 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue