diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2015-03-08 15:22:01 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2015-03-08 15:22:01 +0100 |
commit | d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806 (patch) | |
tree | 280190d80b4a8a00f983c4dfcbe2f5e5be880bef /src/Generating | |
parent | Added proper trees to Mesa biomes (diff) | |
download | cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar.gz cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar.bz2 cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar.lz cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar.xz cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.tar.zst cuberite-d19f2a472b2ba4d7ae32a2b5cf2507a446ea7806.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/CompoGenBiomal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/CompoGenBiomal.cpp b/src/Generating/CompoGenBiomal.cpp index 315ccae73..3140bd754 100644 --- a/src/Generating/CompoGenBiomal.cpp +++ b/src/Generating/CompoGenBiomal.cpp @@ -551,8 +551,8 @@ protected: return; } - BLOCKTYPE Block = m_MesaFloor.CubicNoise2D(NoiseX * 4, NoiseY * 4) < 0 ? E_BLOCK_DIRT : E_BLOCK_GRASS; - NIBBLETYPE Meta = Block == E_BLOCK_GRASS ? 0 : 1; + BLOCKTYPE Block = (m_MesaFloor.CubicNoise2D(NoiseX * 4, NoiseY * 4) < 0) ? E_BLOCK_DIRT : E_BLOCK_GRASS; + NIBBLETYPE Meta = (Block == E_BLOCK_GRASS) ? 0 : 1; a_ChunkDesc.SetBlockTypeMeta(a_RelX, Top, a_RelZ, Block, Meta); } |