summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-24 09:34:20 +0100
committermadmaxoft <github@xoft.cz>2014-02-24 09:34:37 +0100
commit31d15f865456dd0419e5c765498344fdd99cf179 (patch)
tree699c07bf151271b56df9761d825c399fd46e3aac
parentFixed crash in cBlockArea rotation. (diff)
downloadcuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar.gz
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar.bz2
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar.lz
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar.xz
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.tar.zst
cuberite-31d15f865456dd0419e5c765498344fdd99cf179.zip
-rw-r--r--src/Chunk.cpp7
-rw-r--r--src/Chunk.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 4f301c209..8dfbbeef5 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -562,13 +562,6 @@ void cChunk::Tick(float a_Dt)
{
BroadcastPendingBlockChanges();
- // Unload the chunk from all clients that have queued unloading:
- for (cClientHandleList::iterator itr = m_UnloadQuery.begin(), end = m_UnloadQuery.end(); itr != end; ++itr)
- {
- (*itr)->SendUnloadChunk(m_PosX, m_PosZ);
- }
- m_UnloadQuery.clear();
-
// Set all blocks that have been queued for setting later:
ProcessQueuedSetBlocks();
diff --git a/src/Chunk.h b/src/Chunk.h
index 1b7a6fa07..c9e9697ca 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -405,7 +405,6 @@ private:
// A critical section is not needed, because all chunk access is protected by its parent ChunkMap's csLayers
cClientHandleList m_LoadedByClient;
- cClientHandleList m_UnloadQuery;
cEntityList m_Entities;
cBlockEntityList m_BlockEntities;