summaryrefslogtreecommitdiffstats
path: root/source/FinishGen.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-27 23:00:11 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-27 23:00:11 +0200
commit5b69087b729d91be330662d902a3e351d51789f2 (patch)
tree5fd66699debb3de0b9ce76e04ac06ce98d6a8d8c /source/FinishGen.cpp
parentBasic WormNestCaves are working (diff)
downloadcuberite-5b69087b729d91be330662d902a3e351d51789f2.tar
cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.gz
cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.bz2
cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.lz
cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.xz
cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.zst
cuberite-5b69087b729d91be330662d902a3e351d51789f2.zip
Diffstat (limited to 'source/FinishGen.cpp')
-rw-r--r--source/FinishGen.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/FinishGen.cpp b/source/FinishGen.cpp
index 819bfff76..26c3a70f1 100644
--- a/source/FinishGen.cpp
+++ b/source/FinishGen.cpp
@@ -356,3 +356,32 @@ void cFinishGenLilypads::GenFinish(
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cFinishGenBottomLava:
+
+void cFinishGenBottomLava::GenFinish(
+ int a_ChunkX, int a_ChunkZ,
+ cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
+ cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
+ cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
+ const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
+ cEntityList & a_Entities, // Entities may be added or deleted
+ cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
+)
+{
+ for (int y = m_Level; y > 0; y--)
+ {
+ for (int z = 0; z < cChunkDef::Width; z++) for (int x = 0; x < cChunkDef::Width; x++)
+ {
+ int Index = cChunkDef::MakeIndexNoCheck(x, y, z);
+ if (a_BlockTypes[Index] == E_BLOCK_AIR)
+ {
+ a_BlockTypes[Index] = E_BLOCK_STATIONARY_LAVA;
+ }
+ } // for x, for z
+ } // for y
+}
+
+
+
+