diff options
author | madmaxoft <github@xoft.cz> | 2014-02-13 17:04:25 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-13 17:04:25 +0100 |
commit | 9bb48a8fa4368d9cc5d9050a6a67f38891afc14e (patch) | |
tree | fcf8e28d0843c8a61990a146ff9643702a5ecc24 /src/World.cpp | |
parent | MCADefrag: Implemented recompression. (diff) | |
parent | Fixed formatting issue in APIDesc.lua (diff) | |
download | cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar.gz cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar.bz2 cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar.lz cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar.xz cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.tar.zst cuberite-9bb48a8fa4368d9cc5d9050a6a67f38891afc14e.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index f8c1091f0..cb07caa5d 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2213,6 +2213,15 @@ void cWorld::UnloadUnusedChunks(void) +void cWorld::QueueUnloadUnusedChunks(void) +{ + QueueTask(new cWorld::cTaskUnloadUnusedChunks); +} + + + + + void cWorld::CollectPickupsByPlayer(cPlayer * a_Player) { m_ChunkMap->CollectPickupsByPlayer(a_Player); @@ -2945,6 +2954,7 @@ cFluidSimulator * cWorld::InitializeFluidSimulator(cIniFile & a_IniFile, const c + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // cWorld::cTaskSaveAllChunks: @@ -2958,6 +2968,18 @@ void cWorld::cTaskSaveAllChunks::Run(cWorld & a_World) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// cWorld::cTaskUnloadUnusedChunks + +void cWorld::cTaskUnloadUnusedChunks::Run(cWorld & a_World) +{ + a_World.UnloadUnusedChunks(); +} + + + + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // cWorld::cChunkGeneratorCallbacks: cWorld::cChunkGeneratorCallbacks::cChunkGeneratorCallbacks(cWorld & a_World) : |