Skip to content

Commit

Permalink
Fixed biome CCE. There's no need for those values to be specifically …
Browse files Browse the repository at this point in the history
…TFCBiome, as we're just using fields that are part of BiomeGenBase
  • Loading branch information
Kittychanley committed Sep 13, 2015
1 parent 827435e commit 22ba790
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -464,13 +464,13 @@ private double[] initializeNoiseFieldHigh(double[] outArray, int xPos, int yPos,
float rootBlended = 0.0F;
float totalBlendedHeight = 0.0F;
byte radius = 2;
TFCBiome baseBiome = (TFCBiome)this.biomesForGeneration[x + 2 + (z + 2) * (xSize + 5)];
BiomeGenBase baseBiome = this.biomesForGeneration[x + 2 + (z + 2) * (xSize + 5)];

for (int xR = -radius; xR <= radius; ++xR)
{
for (int zR = -radius; zR <= radius; ++zR)
{
TFCBiome blendBiome = (TFCBiome)this.biomesForGeneration[x + xR + 2 + (z + zR + 2) * (xSize + 5)];
BiomeGenBase blendBiome = this.biomesForGeneration[x + xR + 2 + (z + zR + 2) * (xSize + 5)];
float blendedHeight = this.parabolicField[xR + 2 + (zR + 2) * 5] / 2.0F;
if (blendBiome.rootHeight > baseBiome.rootHeight)
blendedHeight *= 0.5F;
Expand Down

0 comments on commit 22ba790

Please sign in to comment.