Skip to content

Commit

Permalink
Fix Canopy Mushroom generation
Browse files Browse the repository at this point in the history
- Fixes #8
  • Loading branch information
CaliforniaDemise committed Dec 27, 2024
1 parent 14ad2a2 commit d97c6c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ private void buildBranch(World world, BlockPos pos, int height, double length, d
if (src.getX() != dest.getX() || src.getZ() != dest.getZ()) {
// branch
TFGenerator.drawBresehnam(this, world, src, new BlockPos(dest.getX(), src.getY(), dest.getZ()), branchState);
TFGenerator.drawBresehnam(this, world, new BlockPos(dest.getX(), src.getY() + 1, dest.getZ()), dest.down(), treeState);
TFGenerator.drawBresehnam(this, world, new BlockPos(dest.getX(), src.getY() + 1, dest.getZ()), dest, treeState);
} else {
// trunk
TFGenerator.drawBresehnam(this, world, src, dest.down(), treeState);
TFGenerator.drawBresehnam(this, world, src, dest, treeState);
}

if (trunk) {
Expand Down

1 comment on commit d97c6c7

@Norfried
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aw yeah! 😎

Please sign in to comment.