summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-05 21:32:44 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-05 21:32:44 +0100
commite3fe15ca59b211be6508bf14373e81402b00d487 (patch)
tree5a73141822b649d10281799e68ee683f48c636fd
parentCorrect typo in documentation. (diff)
parentadd self to CONTRIBUTORS (diff)
downloadcuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar.gz
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar.bz2
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar.lz
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar.xz
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.tar.zst
cuberite-e3fe15ca59b211be6508bf14373e81402b00d487.zip
-rw-r--r--CONTRIBUTORS1
-rw-r--r--src/Blocks/BlockSapling.h13
2 files changed, 13 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 761dcbe6f..a0ff1a980 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -12,6 +12,7 @@ HaoTNN
Howaner
jan64
jasperarmstrong
+kevinr (Kevin Riggle)
keyboard
Lapayo
linnemannr (Reid Linnemann)
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))