diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-24 16:27:44 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-26 18:55:45 +0100 |
commit | 9fcd2d4210d6928fa974adc82e289472a9b4f181 (patch) | |
tree | 0836b9d729c502d2ae006764609c57e09acfed15 /src/World.cpp | |
parent | Silverfish: correct search cube (diff) | |
download | cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar.gz cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar.bz2 cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar.lz cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar.xz cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.tar.zst cuberite-9fcd2d4210d6928fa974adc82e289472a9b4f181.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/World.cpp b/src/World.cpp index 02de985c6..aea963257 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2310,13 +2310,6 @@ void cWorld::SetChunkData(cSetChunkData & a_SetChunkData) m_ChunkMap.SetChunkData(a_SetChunkData); - // Initialize the entities (outside the m_ChunkMap's CS, to fix FS #347): - for (auto & Entity : a_SetChunkData.GetEntities()) - { - auto EntityPtr = Entity.get(); - EntityPtr->Initialize(std::move(Entity), *this); - } - // If a client is requesting this chunk, send it to them: int ChunkX = a_SetChunkData.GetChunkX(); int ChunkZ = a_SetChunkData.GetChunkZ(); @@ -2337,14 +2330,6 @@ void cWorld::SetChunkData(cSetChunkData & a_SetChunkData) return true; } ); - - // Save the chunk right after generating, so that we don't have to generate it again on next run - // If saving is disabled, then the chunk was marked dirty so it will get - // saved if saving is later enabled. - if (a_SetChunkData.ShouldMarkDirty() && IsSavingEnabled()) - { - m_Storage.QueueSaveChunk(ChunkX, ChunkZ); - } } |