summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorJacob <jacobjm18@gmail.com>2017-02-24 09:55:25 +0100
committerMattes D <github@xoft.cz>2017-02-24 09:55:25 +0100
commitf59bd02e0dde2e11e9861188eabb7001a008ddca (patch)
tree73ea058bb769aac6daa21538bb8d502866df4e7b /src/Generating/FinishGen.cpp
parentAdd support for alternate config file locations (#3578) (diff)
downloadcuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar.gz
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar.bz2
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar.lz
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar.xz
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.tar.zst
cuberite-f59bd02e0dde2e11e9861188eabb7001a008ddca.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 4b2cafbca..81ed63924 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -261,6 +261,11 @@ void cFinishGenClumpTopBlock::TryPlaceFoliageClump(cChunkDesc & a_ChunkDesc, int
if (a_IsDoubleTall)
{
a_ChunkDesc.SetBlockTypeMeta(x, Top + 2, z, E_BLOCK_BIG_FLOWER, 8);
+ a_ChunkDesc.SetHeight(x, z, static_cast<HEIGHTTYPE>(Top + 2));
+ }
+ else
+ {
+ a_ChunkDesc.SetHeight(x, z, static_cast<HEIGHTTYPE>(Top + 1));
}
}
@@ -550,12 +555,14 @@ void cFinishGenTallGrass::GenFinish(cChunkDesc & a_ChunkDesc)
NIBBLETYPE Meta = (m_Noise.IntNoise2DInt(xx * 100, zz * 100) / 7 % 100) > 25 ? 2 : 3;
a_ChunkDesc.SetBlockTypeMeta(x, y, z, E_BLOCK_BIG_FLOWER, Meta);
a_ChunkDesc.SetBlockTypeMeta(x, y + 1, z, E_BLOCK_BIG_FLOWER, 8);
+ a_ChunkDesc.SetHeight(x, z, static_cast<HEIGHTTYPE>(y + 1));
}
}
else
{
NIBBLETYPE meta = (m_Noise.IntNoise2DInt(xx * 50, zz * 50) / 7 % 2) + 1;
a_ChunkDesc.SetBlockTypeMeta(x, y, z, E_BLOCK_TALL_GRASS, meta);
+ a_ChunkDesc.SetHeight(x, z, static_cast<HEIGHTTYPE>(y));
}
}
}