summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-08 17:01:44 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-08 17:01:44 +0100
commit7c0a7d662daec45a44bdf598735d1600bf7c187d (patch)
tree28886a3bb1b71b127821a05d58505e26b08e0a0b /source/Generating/ComposableGenerator.cpp
parentAdded cBlockArea:CopyTo() and :CopyFrom(), so now block areas can be duplicated easily. (diff)
downloadcuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.gz
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.bz2
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.lz
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.xz
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.zst
cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp
index a758d5049..793d6a449 100644
--- a/source/Generating/ComposableGenerator.cpp
+++ b/source/Generating/ComposableGenerator.cpp
@@ -88,14 +88,14 @@ void cComposableGenerator::GenerateBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef:
-void cComposableGenerator::DoGenerate(int a_ChunkX, int a_ChunkZ, cChunkDesc & a_ChunkDesc, cEntityList & a_Entities, cBlockEntityList & a_BlockEntities)
+void cComposableGenerator::DoGenerate(int a_ChunkX, int a_ChunkZ, cChunkDesc & a_ChunkDesc)
{
cChunkDef::BiomeMap & BiomeMap = a_ChunkDesc.GetBiomeMap();
cChunkDef::BlockTypes & BlockTypes = a_ChunkDesc.GetBlockTypes();
cChunkDef::BlockNibbles & BlockMeta = a_ChunkDesc.GetBlockMetas();
cChunkDef::HeightMap & HeightMap = a_ChunkDesc.GetHeightMap();
- cEntityList & Entities = a_Entities;
- cBlockEntityList & BlockEntities = a_BlockEntities;
+ cEntityList & Entities = a_ChunkDesc.GetEntities();
+ cBlockEntityList & BlockEntities = a_ChunkDesc.GetBlockEntities();
if (a_ChunkDesc.IsUsingDefaultBiomes())
{
@@ -109,7 +109,7 @@ void cComposableGenerator::DoGenerate(int a_ChunkX, int a_ChunkZ, cChunkDesc & a
if (a_ChunkDesc.IsUsingDefaultComposition())
{
- m_CompositionGen->ComposeTerrain(a_ChunkX, a_ChunkZ, BlockTypes, BlockMeta, HeightMap, BiomeMap, a_Entities, a_BlockEntities);
+ m_CompositionGen->ComposeTerrain(a_ChunkX, a_ChunkZ, BlockTypes, BlockMeta, HeightMap, BiomeMap, Entities, BlockEntities);
}
if (a_ChunkDesc.IsUsingDefaultStructures())