diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-14 16:36:53 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-14 16:36:53 +0200 |
commit | e92335b669ff2093d78469264fbe86a9df8fa707 (patch) | |
tree | 0a59f649e01974f0786aca75a81d260c2f01002d /src/World.cpp | |
parent | Merge pull request #2351 from SamJBarney/TorchStairFix (diff) | |
parent | Sapling Growth Update (diff) | |
download | cuberite-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 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 18 |
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(); |