summaryrefslogtreecommitdiffstats
path: root/source/Generating/ChunkGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Generating/ChunkGenerator.cpp')
-rw-r--r--source/Generating/ChunkGenerator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Generating/ChunkGenerator.cpp b/source/Generating/ChunkGenerator.cpp
index f235215da..b3c25cf46 100644
--- a/source/Generating/ChunkGenerator.cpp
+++ b/source/Generating/ChunkGenerator.cpp
@@ -271,9 +271,12 @@ void cChunkGenerator::DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
m_Generator->DoGenerate(a_ChunkX, a_ChunkZ, ChunkDesc);
cRoot::Get()->GetPluginManager()->CallHookChunkGenerated(m_World, a_ChunkX, a_ChunkZ, &ChunkDesc);
+ cChunkDef::BlockNibbles BlockMetas;
+ ChunkDesc.CompressBlockMetas(BlockMetas);
+
m_World->SetChunkData(
a_ChunkX, a_ChunkY, a_ChunkZ,
- ChunkDesc.GetBlockTypes(), ChunkDesc.GetBlockMetas(),
+ ChunkDesc.GetBlockTypes(), BlockMetas,
NULL, NULL, // We don't have lighting, chunk will be lighted when needed
&ChunkDesc.GetHeightMap(), &ChunkDesc.GetBiomeMap(),
ChunkDesc.GetEntities(), ChunkDesc.GetBlockEntities(),