From b3a5b46361fecee6e69e7bf3a3fe1948ed13979a Mon Sep 17 00:00:00 2001 From: Adubbz Date: Tue, 26 Jan 2016 22:04:06 +1100 Subject: [PATCH] Added a temporary fix for the ugly taiga tree bases in the side of hills --- .../common/world/feature/tree/GeneratorTaigaTree.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/biomesoplenty/common/world/feature/tree/GeneratorTaigaTree.java b/src/main/java/biomesoplenty/common/world/feature/tree/GeneratorTaigaTree.java index 30fa03cd0..364c7eef5 100644 --- a/src/main/java/biomesoplenty/common/world/feature/tree/GeneratorTaigaTree.java +++ b/src/main/java/biomesoplenty/common/world/feature/tree/GeneratorTaigaTree.java @@ -217,6 +217,14 @@ public class GeneratorTaigaTree extends GeneratorTreeBase int trunkStart = MathHelper.ceiling_double_int(0.25D - trunkWidth / 2.0D); int trunkEnd = MathHelper.floor_double(0.25D + trunkWidth / 2.0D); + // TODO: Temporary fix for trees generating larger than normal bases when in the sides of hills + // Should look into doing this properly but i'm busy :P + if (this.trunkWidth <= 1) + { + trunkStart = 0; + trunkEnd = 0; + } + for (int x = trunkStart; x <= trunkEnd; x++) { for (int z = trunkStart; z <= trunkEnd; z++)