From 91afc0e1bde2697575b2c6debf485df7bbee2b77 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 2 Feb 2019 16:04:14 +1100 Subject: [PATCH] fix branches of ash tree being too short --- MCGalaxy/Generator/Foliage/AshTree.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MCGalaxy/Generator/Foliage/AshTree.cs b/MCGalaxy/Generator/Foliage/AshTree.cs index da570dea4..aadc269cf 100644 --- a/MCGalaxy/Generator/Foliage/AshTree.cs +++ b/MCGalaxy/Generator/Foliage/AshTree.cs @@ -62,19 +62,19 @@ namespace MCGalaxy.Generator.Foliage { int branchStart = rnd.Next(branchBaseHeight, height); int branchMax = branchStart + rnd.Next(3, maxBranchHeight); + Vec3S32 p1 = new Vec3S32(x, y + branchStart, z); + Vec3S32 p2 = new Vec3S32(x + dx, y + branchMax, z + dz); + Line(p1, p2, output); + int R = clusterSize; Vec3S32[] marks = new Vec3S32[] { new Vec3S32(x + dx - R, y + branchMax - R, z + dz - R), new Vec3S32(x + dx + R, y + branchMax + R, z + dz + R) }; DrawOp op = new EllipsoidDrawOp(); - Brush brush = new RandomBrush(new BlockID[] { Block.Leaves }); + Brush brush = new SolidBrush(Block.Leaves); op.SetMarks(marks); op.Perform(marks, brush, b => output(b.X, b.Y, b.Z, (BlockRaw)b.Block)); - - Vec3S32 p1 = new Vec3S32(x, y + branchStart, z); - Vec3S32 p2 = new Vec3S32(x + dx, y + branchMax, z + dz); - Line(p1, p2, output); } void Line(Vec3S32 p1, Vec3S32 p2, TreeOutput output) {