From 111ed34276d4e54d572dfdec8b392adf257f461f Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Tue, 7 May 2013 09:10:33 -0400 Subject: [PATCH] Improved the Redwood Forest biome and thin redwood tree generation. --- .../biomesoplenty/biomes/BiomeGenRedwoodForest.java | 6 +++--- .../biomesoplenty/worldgen/WorldGenRedwoodTree2.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/minecraft/biomesoplenty/biomes/BiomeGenRedwoodForest.java b/src/minecraft/biomesoplenty/biomes/BiomeGenRedwoodForest.java index 4a003ce5f..24df879fb 100644 --- a/src/minecraft/biomesoplenty/biomes/BiomeGenRedwoodForest.java +++ b/src/minecraft/biomesoplenty/biomes/BiomeGenRedwoodForest.java @@ -7,6 +7,7 @@ import biomesoplenty.worldgen.WorldGenRedwoodTree2; import net.minecraft.block.Block; import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.gen.feature.WorldGenShrub; import net.minecraft.world.gen.feature.WorldGenTallGrass; import net.minecraft.world.gen.feature.WorldGenerator; @@ -19,7 +20,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase super(par1); this.theBiomeDecorator = new BiomeDecoratorBOP(this); this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; - this.customBiomeDecorator.treesPerChunk = 10; + this.customBiomeDecorator.treesPerChunk = 6; this.customBiomeDecorator.grassPerChunk = 16; this.customBiomeDecorator.bushesPerChunk = 4; this.customBiomeDecorator.generatePumpkins = false; @@ -30,8 +31,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase */ public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { - //return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwood2() : new WorldGenRedwood1()); - return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwoodTree(false) : new WorldGenRedwoodTree2(false)); + return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenRedwoodTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenRedwoodTree2(false))); } /** diff --git a/src/minecraft/biomesoplenty/worldgen/WorldGenRedwoodTree2.java b/src/minecraft/biomesoplenty/worldgen/WorldGenRedwoodTree2.java index 489e975f4..f74cea066 100644 --- a/src/minecraft/biomesoplenty/worldgen/WorldGenRedwoodTree2.java +++ b/src/minecraft/biomesoplenty/worldgen/WorldGenRedwoodTree2.java @@ -154,7 +154,7 @@ public class WorldGenRedwoodTree2 extends WorldGenerator for (var11 = par4 - var9 + var6; var11 <= par4 + var6; ++var11) { var12 = var11 - (par4 + var6); - var13 = var18 + 1 - var12 / 8; + var13 = var18 + 1 - var12 / 6; for (var14 = par3 - var13; var14 <= par3 + var13; ++var14) {