The fallback height variation can no longer return negative numbers
This commit is contained in:
parent
0114127565
commit
23dc6253d5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue