The fallback height variation can no longer return negative numbers

This commit is contained in:
Adubbz 2017-06-16 10:38:33 +10:00
parent 0114127565
commit 23dc6253d5
1 changed files with 1 additions and 1 deletions

View File

@ -234,6 +234,6 @@ public class BOPOverworldBiome extends BOPBiome
public float getHeightVariation()
{
// average the heightVariation values for above and below
return (((float)this.terrainSettings.variationAbove - 7.0F) / (20.0F * 4.0F) + ((float)this.terrainSettings.variationBelow - 4.0F) / 20.0F) / 2.0F;
return Math.abs((((float)this.terrainSettings.variationAbove - 7.0F) / (20.0F * 4.0F) + ((float)this.terrainSettings.variationBelow - 4.0F) / 20.0F) / 2.0F);
}
}