diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2021-03-05 14:04:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:04:48 +0100 |
commit | 4d6235c807e8142a41bab86a4dc1a49fb1a078ca (patch) | |
tree | 6b1c7c33d0d5e8456177b3e2bf160492d79d5d8f /src/Generating/StructGen.cpp | |
parent | Prepare ChunkData for BlockState storage (#5105) (diff) | |
download | cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar.gz cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar.bz2 cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar.lz cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar.xz cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.tar.zst cuberite-4d6235c807e8142a41bab86a4dc1a49fb1a078ca.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/StructGen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Generating/StructGen.cpp b/src/Generating/StructGen.cpp index 9fa413e2d..fd78ceb3e 100644 --- a/src/Generating/StructGen.cpp +++ b/src/Generating/StructGen.cpp @@ -108,7 +108,7 @@ void cStructGenTrees::GenerateSingleTree( // Check the block underneath the tree: BLOCKTYPE TopBlock = a_ChunkDesc.GetBlockType(a_Pos.x, a_Pos.y, a_Pos.z); - if ((TopBlock != E_BLOCK_DIRT) && (TopBlock != E_BLOCK_GRASS) && (TopBlock != E_BLOCK_FARMLAND)) + if ((TopBlock != E_BLOCK_DIRT) && (TopBlock != E_BLOCK_GRASS) && (TopBlock != E_BLOCK_FARMLAND) && (TopBlock != E_BLOCK_MYCELIUM)) { return; } @@ -175,6 +175,8 @@ void cStructGenTrees::ApplyTreeImage( { case E_BLOCK_NEW_LEAVES: case E_BLOCK_LEAVES: + case E_BLOCK_HUGE_BROWN_MUSHROOM: + case E_BLOCK_HUGE_RED_MUSHROOM: { if ((itr->m_BlockType != E_BLOCK_LOG) && (itr->m_BlockType != E_BLOCK_NEW_LOG)) { |