summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-24 16:43:31 +0200
committertycho <work.tycho@gmail.com>2015-09-24 16:54:32 +0200
commit6e86d20f730aa46e0fa6b13b26a3b2586d21e513 (patch)
treef9067a30d91f764c92a5b77c2bca2cf00dd53162 /src/World.cpp
parentMerge pull request #2488 from cuberite/ChatFlag (diff)
downloadcuberite-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 'src/World.cpp')
-rw-r--r--src/World.cpp9
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);