diff options
author | tycho <work.tycho@gmail.com> | 2015-09-24 16:43:31 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-09-24 16:54:32 +0200 |
commit | 6e86d20f730aa46e0fa6b13b26a3b2586d21e513 (patch) | |
tree | f9067a30d91f764c92a5b77c2bca2cf00dd53162 /src/World.cpp | |
parent | Merge pull request #2488 from cuberite/ChatFlag (diff) | |
download | cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.gz cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.bz2 cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.lz cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.xz cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.tar.zst cuberite-6e86d20f730aa46e0fa6b13b26a3b2586d21e513.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index eb96eb57a..5920b83fe 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -3140,6 +3140,15 @@ bool cWorld::ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunk +bool cWorld::ForEachLoadedChunk(std::function<bool(int, int)> a_Callback) +{ + return m_ChunkMap->ForEachLoadedChunk(a_Callback); +} + + + + + void cWorld::SaveAllChunks(void) { m_LastSave = std::chrono::duration_cast<cTickTimeLong>(m_WorldAge); |