diff options
author | NiLSPACE <NiLSPACE@users.noreply.github.com> | 2019-12-22 23:38:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-12-22 23:38:11 +0100 |
commit | dc787e1d968058a810ad379013f84c82ea78b2fa (patch) | |
tree | 4b97b7f602f298df05cd634ac663292cc6c8b90b /src/Generating/StructGen.cpp | |
parent | AppVeyor release builds (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Generating/StructGen.cpp | 5 |
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; } |