summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.cpp
diff options
context:
space:
mode:
authorNiLSPACE <NiLSPACE@users.noreply.github.com>2019-12-22 23:38:11 +0100
committerMattes D <github@xoft.cz>2019-12-22 23:38:11 +0100
commitdc787e1d968058a810ad379013f84c82ea78b2fa (patch)
tree4b97b7f602f298df05cd634ac663292cc6c8b90b /src/Generating/StructGen.cpp
parentAppVeyor release builds (diff)
downloadcuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar.gz
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar.bz2
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar.lz
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar.xz
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.tar.zst
cuberite-dc787e1d968058a810ad379013f84c82ea78b2fa.zip
Diffstat (limited to 'src/Generating/StructGen.cpp')
-rw-r--r--src/Generating/StructGen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Generating/StructGen.cpp b/src/Generating/StructGen.cpp
index d3351c5c5..d3bd6114e 100644
--- a/src/Generating/StructGen.cpp
+++ b/src/Generating/StructGen.cpp
@@ -99,7 +99,7 @@ void cStructGenTrees::GenerateSingleTree(
sSetBlockVector TreeLogs, TreeOther;
GetTreeImageByBiome(
- a_ChunkX * cChunkDef::Width + x, Height + 1, a_ChunkZ * cChunkDef::Width + z,
+ { a_ChunkX * cChunkDef::Width + x, Height + 1, a_ChunkZ * cChunkDef::Width + z },
m_Noise, a_Seq,
a_ChunkDesc.GetBiome(x, z),
TreeLogs, TreeOther
@@ -157,9 +157,10 @@ void cStructGenTrees::ApplyTreeImage(
// Inside this chunk, integrate into a_ChunkDesc:
switch (a_ChunkDesc.GetBlockType(itr->m_RelX, itr->m_RelY, itr->m_RelZ))
{
+ case E_BLOCK_NEW_LEAVES:
case E_BLOCK_LEAVES:
{
- if (itr->m_BlockType != E_BLOCK_LOG)
+ if ((itr->m_BlockType != E_BLOCK_LOG) && (itr->m_BlockType != E_BLOCK_NEW_LOG))
{
break;
}