Biomes with id -1 are no longer added to the generation lists
This commit is contained in:
parent
587a34337d
commit
a3bb33d3aa
1 changed files with 12 additions and 9 deletions
|
@ -119,6 +119,8 @@ public class JsonBiome
|
||||||
extendedBiome.clearWeights();
|
extendedBiome.clearWeights();
|
||||||
|
|
||||||
//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.
|
||||||
|
if (biome.biomeID != -1)
|
||||||
|
{
|
||||||
for (Entry<BiomeType, Integer> entry : weightMap.entrySet())
|
for (Entry<BiomeType, Integer> entry : weightMap.entrySet())
|
||||||
{
|
{
|
||||||
if (entry != null)
|
if (entry != null)
|
||||||
|
@ -131,6 +133,7 @@ public class JsonBiome
|
||||||
BOPBiomeManager.addBiome(biomeType, new BiomeEntry(biome, weight));
|
BOPBiomeManager.addBiome(biomeType, new BiomeEntry(biome, weight));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
biome.biomeName = jsonBiome.biomeName;
|
biome.biomeName = jsonBiome.biomeName;
|
||||||
biome.topBlock = jsonBiome.topBlock;
|
biome.topBlock = jsonBiome.topBlock;
|
||||||
|
|
Loading…
Reference in a new issue