Skip to content

Commit cb6161b

Browse files
committed
Fixed some trees not generating properly
1 parent 65095cb commit cb6161b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/forestry/arboriculture/worldgen/FeatureBaobab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void generateTrunk(LevelAccessor level, List<BlockPos> logOrigins, List<B
3333
FeatureHelper.generateCylinderFromTreeStartPos(level, wood, startPos.offset(0, this.height - 1, this.girth / 2), this.girth, this.girth - 1, 1, FeatureHelper.EnumReplaceMode.SOFT, TreeContour.EMPTY);
3434
}
3535

36-
FeatureHelper.generateBranches(level, rand, wood, startPos.offset(0, this.height - 2, 0), this.girth, 0, 0.5f, 4, 6, 1.0f);
36+
branchCoords.addAll(FeatureHelper.generateBranches(level, rand, wood, startPos.offset(0, this.height - 2, 0), this.girth, 0, 0.5f, 4, 6, 1.0f));
3737
}
3838

3939
@Override

src/main/java/forestry/arboriculture/worldgen/FeatureMaple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public FeatureMaple(ITreeGenData tree) {
2626

2727
@Override
2828
public void generateTrunk(LevelAccessor level, List<BlockPos> logOrigins, List<BlockPos> branchCoords, RandomSource rand, TreeBlockTypeLog wood, BlockPos startPos) {
29-
FeatureHelper.generateTreeTrunk(level, branchCoords, rand, wood, startPos, this.height, this.girth, 0, 0, null, 0);
29+
FeatureHelper.generateTreeTrunk(level, logOrigins, rand, wood, startPos, this.height, this.girth, 0, 0, null, 0);
3030

3131
for (int yBranch = 2; yBranch < this.height - 2; yBranch++) {
3232
branchCoords.addAll(FeatureHelper.generateBranches(level, rand, wood, startPos.offset(0, yBranch, 0), this.girth, 0.15f, 0.25f, Math.round((this.height - yBranch) * 0.25f), 1, 0.25f));

src/main/java/forestry/arboriculture/worldgen/FeatureSequoia.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected FeatureSequoia(ITreeGenData tree, int baseHeight, int heightVariation)
3030

3131
@Override
3232
public void generateTrunk(LevelAccessor level, List<BlockPos> logOrigins, List<BlockPos> branchCoords, RandomSource rand, TreeBlockTypeLog wood, BlockPos startPos) {
33-
FeatureHelper.generateTreeTrunk(level, branchCoords, rand, wood, startPos, this.height, this.girth, 0, 0, null, 0);
33+
FeatureHelper.generateTreeTrunk(level, logOrigins, rand, wood, startPos, this.height, this.girth, 0, 0, null, 0);
3434
FeatureHelper.generateSupportStems(wood, level, rand, startPos, this.height, this.girth, 0.4f, 0.4f);
3535

3636
int topHeight = this.height / 3 + rand.nextInt(this.height / 6);

0 commit comments

Comments
 (0)