summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-27 13:12:45 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-27 13:12:45 +0200
commitfe7018bd005adb8dadf849bd988696d638919f23 (patch)
treedd653e1b72048a6ffb0e2e522600b389fd17ce13
parentNetherClumpFoliage: Fixed assert (diff)
downloadcuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar.gz
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar.bz2
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar.lz
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar.xz
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.tar.zst
cuberite-fe7018bd005adb8dadf849bd988696d638919f23.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/CompoGen.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index faf2ac243..655d629b7 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -628,7 +628,15 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc)
for (int z = 0; z < 16; z++) for (int x = 0; x < 16; x++)
{
a_ChunkDesc.SetBlockType(x, 0, z, E_BLOCK_BEDROCK);
- a_ChunkDesc.SetBlockType(x, a_ChunkDesc.GetHeight(x, z), z, E_BLOCK_BEDROCK);
+
+ int Height = a_ChunkDesc.GetHeight(x, z);
+ a_ChunkDesc.SetBlockType(x, Height, z, E_BLOCK_BEDROCK);
+ int CeilingDisguiseHeight = Height - 2 - (m_Noise1.IntNoise2DInt(a_ChunkDesc.GetChunkX() * cChunkDef::Width + x, a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z) % 3);
+
+ for (int y = Height - 1; y > CeilingDisguiseHeight; y--)
+ {
+ a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_NETHERRACK);
+ }
}
}