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

Avoid generating the same chunk more than once with multiple emerge threads.

This commit is contained in:
Lars 2020-11-15 22:58:57 -08:00 committed by lhofhansl
parent 9bb381ebd3
commit f1d72d212a
11 changed files with 5 additions and 50 deletions

View file

@ -423,6 +423,7 @@ private:
// Chunks
core::map<v2s16, MapChunk*> m_chunks;
#endif
std::set<v3s16> m_chunks_in_progress;
/*
Metadata is re-written on disk only if this is true.