diff options
author | Lars <larsh@apache.org> | 2020-11-15 22:58:57 -0800 |
---|---|---|
committer | lhofhansl <larsh@apache.org> | 2020-11-26 20:31:20 -0800 |
commit | f1d72d212a0661588be27003069abf4bd8092e55 (patch) | |
tree | 86de402f9f11ab96af7b6d37ebbfe3c539226487 /src/map.h | |
parent | 9bb381ebd387cd783da8d582949bf284a29d9b3a (diff) | |
download | minetest-f1d72d212a0661588be27003069abf4bd8092e55.tar.gz minetest-f1d72d212a0661588be27003069abf4bd8092e55.tar.bz2 minetest-f1d72d212a0661588be27003069abf4bd8092e55.zip |
Avoid generating the same chunk more than once with multiple emerge threads.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |