summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2020-08-05 19:36:38 +0200
committerAlexander Harkness <me@bearbin.net>2020-08-05 19:41:19 +0200
commitd6c5ac40a6e3495f149fd689edff950eb9ba13c9 (patch)
tree0678ff09cb996eeac2c361a5636643eab951ac12 /src/Generating
parentedit comment (diff)
downloadcuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar.gz
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar.bz2
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar.lz
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar.xz
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.tar.zst
cuberite-d6c5ac40a6e3495f149fd689edff950eb9ba13c9.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Trees.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/Trees.cpp b/src/Generating/Trees.cpp
index 8b5e72515..cd2748ddd 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -1035,11 +1035,11 @@ void GetLargeSpruceTreeImage(Vector3i a_BlockPos, cNoise & a_Noise, int a_Seq, s
for (int i = 0; i < LeavesRingCount; i++)
{
unsigned int Val = (a_Noise.IntNoise3DInt(a_BlockPos.addedXZ(32 * a_Seq, 32 * i)) / 23) % 8;
- if ((Val < 4) && RingRadius <= 3)
+ if ((Val < 4) && RingRadius < 3)
{
RingRadius++;
}
- else if ((Val >= 7) && (RingRadius <= 0))
+ else if ((Val == 7) && (RingRadius > 0))
{
RingRadius--;
}