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,16 +119,19 @@ public class JsonBiome
|
|||
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.
|
||||
for (Entry<BiomeType, Integer> entry : weightMap.entrySet())
|
||||
if (biome.biomeID != -1)
|
||||
{
|
||||
if (entry != null)
|
||||
for (Entry<BiomeType, Integer> entry : weightMap.entrySet())
|
||||
{
|
||||
BiomeType biomeType = entry.getKey();
|
||||
int weight = entry.getValue();
|
||||
if (entry != null)
|
||||
{
|
||||
BiomeType biomeType = entry.getKey();
|
||||
int weight = entry.getValue();
|
||||
|
||||
//Updates the biome's weights to be in line with the config file
|
||||
extendedBiome.addWeight(biomeType, weight);
|
||||
BOPBiomeManager.addBiome(biomeType, new BiomeEntry(biome, weight));
|
||||
//Updates the biome's weights to be in line with the config file
|
||||
extendedBiome.addWeight(biomeType, weight);
|
||||
BOPBiomeManager.addBiome(biomeType, new BiomeEntry(biome, weight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue