summaryrefslogtreecommitdiffstats
path: root/source/Generating
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-05 20:57:22 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-05 20:57:22 +0100
commitdedb414a50328bf00462409d14d8917ff24844be (patch)
tree8024df89792a668ad675730b124429c4f03dc1dd /source/Generating
parentBiomeVisualiser: initial import (diff)
downloadcuberite-dedb414a50328bf00462409d14d8917ff24844be.tar
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.gz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.bz2
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.lz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.xz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.zst
cuberite-dedb414a50328bf00462409d14d8917ff24844be.zip
Diffstat (limited to 'source/Generating')
-rw-r--r--source/Generating/ChunkGenerator.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/Generating/ChunkGenerator.cpp b/source/Generating/ChunkGenerator.cpp
index b4781fbda..70b95f0d9 100644
--- a/source/Generating/ChunkGenerator.cpp
+++ b/source/Generating/ChunkGenerator.cpp
@@ -273,9 +273,10 @@ void cChunkGenerator::DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
cEntityList Entities;
cBlockEntityList BlockEntities;
- cChunkDesc LuaChunk(BlockTypes, BlockMeta, HeightMap, BiomeMap);
- cRoot::Get()->GetPluginManager()->CallHookChunkGenerating(m_World, a_ChunkX, a_ChunkZ, &LuaChunk);
- m_Generator->DoGenerate(a_ChunkX, a_ChunkZ, LuaChunk, Entities, BlockEntities);
+ cChunkDesc ChunkDesc(BlockTypes, BlockMeta, HeightMap, BiomeMap);
+ cRoot::Get()->GetPluginManager()->CallHookChunkGenerating(m_World, a_ChunkX, a_ChunkZ, &ChunkDesc);
+ m_Generator->DoGenerate(a_ChunkX, a_ChunkZ, ChunkDesc, Entities, BlockEntities);
+ cRoot::Get()->GetPluginManager()->CallHookChunkGenerated(m_World, a_ChunkX, a_ChunkZ, &ChunkDesc);
m_World->SetChunkData(
a_ChunkX, a_ChunkY, a_ChunkZ,
@@ -285,8 +286,6 @@ void cChunkGenerator::DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
Entities, BlockEntities,
true
);
-
- cRoot::Get()->GetPluginManager()->CallHookChunkGenerated(m_World, a_ChunkX, a_ChunkZ);
}