summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-12-24 16:28:22 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-12-26 18:55:45 +0100
commit60bc040a9c2ca6612128078c2178391f23e65a74 (patch)
tree4e8988667fc583a9abbf69a09733977a24ccac02 /src/ChunkMap.cpp
parentAvoid a gratuitous dirty when loading chunks with entities (diff)
downloadcuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar.gz
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar.bz2
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar.lz
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar.xz
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.tar.zst
cuberite-60bc040a9c2ca6612128078c2178391f23e65a74.zip
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r--src/ChunkMap.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 4425ebb23..a2cd621d7 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -245,11 +245,6 @@ void cChunkMap::SetChunkData(cSetChunkData & a_SetChunkData)
ASSERT(Chunk != nullptr); // Chunk cannot have unloaded since it is marked as queued
Chunk->SetAllData(a_SetChunkData);
- if (a_SetChunkData.ShouldMarkDirty())
- {
- Chunk->MarkDirty();
- }
-
// Notify relevant ChunkStays:
cChunkStays ToBeDisabled;
for (cChunkStays::iterator itr = m_ChunkStays.begin(), end = m_ChunkStays.end(); itr != end; ++itr)
@@ -290,7 +285,6 @@ void cChunkMap::ChunkLighted(
return;
}
Chunk->SetLight(a_BlockLight, a_SkyLight);
- Chunk->MarkDirty();
}