summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-07-14 16:36:53 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-07-14 16:36:53 +0200
commite92335b669ff2093d78469264fbe86a9df8fa707 (patch)
tree0a59f649e01974f0786aca75a81d260c2f01002d /src/World.cpp
parentMerge pull request #2351 from SamJBarney/TorchStairFix (diff)
parentSapling Growth Update (diff)
downloadcuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar.gz
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar.bz2
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar.lz
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar.xz
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.tar.zst
cuberite-e92335b669ff2093d78469264fbe86a9df8fa707.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 83a8b6c10..123e4a8da 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -1393,9 +1393,23 @@ void cWorld::GrowTreeFromSapling(int a_X, int a_Y, int a_Z, NIBBLETYPE a_Sapling
case E_META_SAPLING_APPLE: GetAppleTreeImage (a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
case E_META_SAPLING_BIRCH: GetBirchTreeImage (a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
case E_META_SAPLING_CONIFER: GetConiferTreeImage(a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
- case E_META_SAPLING_JUNGLE: GetJungleTreeImage (a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
case E_META_SAPLING_ACACIA: GetAcaciaTreeImage (a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
- case E_META_SAPLING_DARK_OAK: GetDarkoakTreeImage(a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other); break;
+ case E_META_SAPLING_JUNGLE:
+ {
+ bool IsLarge = GetLargeTreeAdjustment(*this, a_X, a_Y, a_Z, a_SaplingMeta);
+ GetJungleTreeImage (a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other, IsLarge);
+ break;
+ }
+ case E_META_SAPLING_DARK_OAK:
+ {
+ if (!GetLargeTreeAdjustment(*this, a_X, a_Y, a_Z, a_SaplingMeta))
+ {
+ return;
+ }
+
+ GetDarkoakTreeImage(a_X, a_Y, a_Z, Noise, WorldAge, Logs, Other);
+ break;
+ }
}
Other.insert(Other.begin(), Logs.begin(), Logs.end());
Logs.clear();