summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 16:36:48 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 16:36:48 +0100
commitfa4a85c91518575e600fbd5755dda179931d9436 (patch)
treea7d8a66c6f24af870caff3853920cb0d53eefe17 /src/Generating/CompoGen.cpp
parentMerge pull request #1624 from mc-server/LuaDeprecating (diff)
downloadcuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar.gz
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar.bz2
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar.lz
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar.xz
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.tar.zst
cuberite-fa4a85c91518575e600fbd5755dda179931d9436.zip
Diffstat (limited to 'src/Generating/CompoGen.cpp')
-rw-r--r--src/Generating/CompoGen.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index 6c3b50b4e..cb9c04fd7 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -290,17 +290,7 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc:
BLOCKTYPE Block = E_BLOCK_AIR;
if (Val < m_Threshold) // Don't calculate if the block should be Netherrack or Soulsand when it's already decided that it's air.
{
- NOISE_DATATYPE NoiseX = ((NOISE_DATATYPE)(BaseX + x)) / 8;
- NOISE_DATATYPE NoiseY = ((NOISE_DATATYPE)(BaseZ + z)) / 8;
- NOISE_DATATYPE CompBlock = m_Noise1.CubicNoise3D(NoiseX, (float) (y + Segment) / 2, NoiseY);
- if (CompBlock < -0.5)
- {
- Block = E_BLOCK_SOULSAND;
- }
- else
- {
- Block = E_BLOCK_NETHERRACK;
- }
+ Block = E_BLOCK_NETHERRACK;
}
a_ChunkDesc.SetBlockType(x, y + Segment, z, Block);
}