summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-11 02:00:07 +0100
committernarroo <narroo@vt.edu>2014-02-11 02:00:07 +0100
commite8e76a6058988cb0cff222579049fb6aa3cdb9c1 (patch)
tree4f808fb359e91ab315a95a1d5b9161d092774bc0 /src/World.cpp
parentTypo Fix in console.lua (diff)
downloadcuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar.gz
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar.bz2
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar.lz
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar.xz
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.tar.zst
cuberite-e8e76a6058988cb0cff222579049fb6aa3cdb9c1.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 662a9a4b8..9120f8d7d 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2213,6 +2213,10 @@ void cWorld::UnloadUnusedChunks(void)
}
+void cWorld::QueueUnloadUnusedChunks(void)
+{
+ QueueTask(new cWorld::cTaskUnloadUnusedChunks);
+}
@@ -2966,7 +2970,13 @@ void cWorld::cTaskSaveAllChunks::Run(cWorld & a_World)
}
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cWorld::cTaskUnloadUnusedChunks
+void cWorld::cTaskUnloadUnusedChunks::Run(cWorld & a_World)
+{
+ a_World.UnloadUnusedChunks();
+}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////