summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin Riggle <kevinr@free-dissociation.com>2016-02-04 07:15:23 +0100
committerKevin Riggle <kevinr@free-dissociation.com>2016-02-04 07:20:31 +0100
commite4a8c681b025af74a34624876334c47cf065764a (patch)
treea5badc3a616caa98557157d7d785d4b2723df9e5 /src
parentMerge pull request #2941 from LogicParrot/chunkBug2 (diff)
downloadcuberite-e4a8c681b025af74a34624876334c47cf065764a.tar
cuberite-e4a8c681b025af74a34624876334c47cf065764a.tar.gz
cuberite-e4a8c681b025af74a34624876334c47cf065764a.tar.bz2
cuberite-e4a8c681b025af74a34624876334c47cf065764a.tar.lz
cuberite-e4a8c681b025af74a34624876334c47cf065764a.tar.xz
cuberite-e4a8c681b025af74a34624876334c47cf065764a.tar.zst
cuberite-e4a8c681b025af74a34624876334c47cf065764a.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockSapling.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Blocks/BlockSapling.h b/src/Blocks/BlockSapling.h
index 1770cc4aa..ea10d5c20 100644
--- a/src/Blocks/BlockSapling.h
+++ b/src/Blocks/BlockSapling.h
@@ -92,7 +92,18 @@ public:
}
break;
}
- // Dark Oaks only grow in a 2x2 area
+ // Acacias don't need horizontal clearance
+ case E_META_SAPLING_ACACIA:
+ {
+ if (!IsLargeTree(a_Chunk, a_RelX, a_RelY, a_RelZ, a_Meta))
+ {
+ return false;
+ }
+ CheckHeight = 7;
+ LargeTree = true;
+ break;
+ }
+ // Dark Oaks don't need horizontal clearance
case E_META_SAPLING_DARK_OAK:
{
if (!IsLargeTree(a_Chunk, a_RelX, a_RelY, a_RelZ, a_Meta))