From a3bb33d3aa770423aa7f813d8c6b2f06d21e7857 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Tue, 7 Apr 2015 11:42:59 +1000 Subject: [PATCH] Biomes with id -1 are no longer added to the generation lists --- .../common/util/config/JsonBiome.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/main/java/biomesoplenty/common/util/config/JsonBiome.java b/src/main/java/biomesoplenty/common/util/config/JsonBiome.java index f6eb50526..2014c6fd8 100644 --- a/src/main/java/biomesoplenty/common/util/config/JsonBiome.java +++ b/src/main/java/biomesoplenty/common/util/config/JsonBiome.java @@ -119,19 +119,22 @@ 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 entry : weightMap.entrySet()) + if (biome.biomeID != -1) { - if (entry != null) + for (Entry entry : weightMap.entrySet()) { - 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)); + 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)); + } } } - + biome.biomeName = jsonBiome.biomeName; biome.topBlock = jsonBiome.topBlock; biome.fillerBlock = jsonBiome.fillerBlock;