Overrode getBaseHeight and getHeightVariation for better compatibility with Pioneer
This commit is contained in:
parent
95810b636b
commit
24ff101a03
2 changed files with 18 additions and 0 deletions
|
@ -209,4 +209,20 @@ public class BOPOverworldBiome extends BOPBiome
|
|||
{
|
||||
return this.beachBiomeLocation;
|
||||
}
|
||||
|
||||
// the below two methods convert between our values and Vanilla.
|
||||
// they're mostly used for mods like Pioneer rather than .
|
||||
|
||||
@Override
|
||||
public float getBaseHeight()
|
||||
{
|
||||
return ((float)this.terrainSettings.avgHeight - 65.0F) / 17.0F;
|
||||
}
|
||||
|
||||
@Override
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,3 +13,5 @@ protected net.minecraft.world.biome.BiomeProvider field_76945_e #biomeIndexLayer
|
|||
|
||||
public-f net.minecraft.world.gen.feature.WorldGenMinable *
|
||||
|
||||
public-f net.minecraft.world.biome.Biome func_185355_j()F #getBaseHeight
|
||||
public-f net.minecraft.world.biome.Biome func_185360_m()F #getHeightVariation
|
Loading…
Reference in a new issue