Fixed chaotic areas in limestone mountains
This commit is contained in:
parent
a203d00cad
commit
07fc30e06f
1 changed files with 6 additions and 4 deletions
|
@ -68,13 +68,15 @@ public class WBLimestoneMountains
|
|||
}
|
||||
this.generateBiomeTerrain( worldIn , rand , chunkPrimerIn , x , z , noiseVal );
|
||||
|
||||
if ( noiseVal < -1. && this.chaoticAreas ) {
|
||||
this.genChaoticArea( rand , chunkPrimerIn , x , z );
|
||||
double gcn = GRASS_COLOR_NOISE.getValue( z / 32. , x / 32. );
|
||||
if ( gcn > .25 && this.chaoticAreas ) {
|
||||
this.genChaoticArea( rand , chunkPrimerIn , x , z , (int) ( ( gcn - .25 ) * 6 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void genChaoticArea( final Random rand , final ChunkPrimer chunkPrimerIn , final int x , final int z )
|
||||
private void genChaoticArea( final Random rand , final ChunkPrimer chunkPrimerIn , final int x , final int z ,
|
||||
int heightMax )
|
||||
{
|
||||
final int chunkX = x & 15 , chunkZ = z & 15;
|
||||
final int groundY = this.findGround( chunkPrimerIn , chunkX , chunkZ );
|
||||
|
@ -87,7 +89,7 @@ public class WBLimestoneMountains
|
|||
return;
|
||||
}
|
||||
|
||||
final int topY = groundY + rand.nextInt( 3 );
|
||||
final int topY = groundY + rand.nextInt( heightMax + 1 );
|
||||
for ( int y = stoneY ; y <= topY ; y++ ) {
|
||||
final int v = rand.nextInt( 20 );
|
||||
IBlockState randBlock;
|
||||
|
|
Reference in a new issue