Fixed biome registration not occurring on first run
This commit is contained in:
parent
981ccdc2ca
commit
587a34337d
1 changed files with 8 additions and 1 deletions
|
@ -71,6 +71,13 @@ public class JsonBiome
|
||||||
biome.weights = extendedBiome.getWeightMap();
|
biome.weights = extendedBiome.getWeightMap();
|
||||||
biome.decoration = generationManager.createGeneratorMap();
|
biome.decoration = generationManager.createGeneratorMap();
|
||||||
|
|
||||||
|
if (extendedBiome.getBiomeOwner() == BiomeOwner.BIOMESOPLENTY)
|
||||||
|
{
|
||||||
|
//Add the biome to the array if it is ours because the registration in configureBiomeWithJson is
|
||||||
|
//not called on the first run
|
||||||
|
BiomeGenBase.getBiomeGenArray()[baseBiome.biomeID] = baseBiome;
|
||||||
|
}
|
||||||
|
|
||||||
//TODO: Add a system for making Vanilla biome weights configurable. This won't necessarily be in this class, however it's worth noting.
|
//TODO: Add a system for making Vanilla biome weights configurable. This won't necessarily be in this class, however it's worth noting.
|
||||||
for (Entry<BiomeType, Integer> entry : extendedBiome.getWeightMap().entrySet())
|
for (Entry<BiomeType, Integer> entry : extendedBiome.getWeightMap().entrySet())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue