diff --git a/src/main/java/biomesoplenty/BiomesOPlenty.java b/src/main/java/biomesoplenty/BiomesOPlenty.java index 1feaf48fd..8506ccd0d 100644 --- a/src/main/java/biomesoplenty/BiomesOPlenty.java +++ b/src/main/java/biomesoplenty/BiomesOPlenty.java @@ -2,7 +2,6 @@ package biomesoplenty; import biomesoplenty.common.configuration.BOPConfiguration; import biomesoplenty.common.configuration.BOPConfigurationBiomeGen; -import biomesoplenty.common.configuration.BOPConfigurationWorldFeatures; import biomesoplenty.common.configuration.structures.BOPConfigurationStrongholds; import biomesoplenty.common.configuration.structures.BOPConfigurationVillages; import biomesoplenty.common.core.*; @@ -56,7 +55,6 @@ public class BiomesOPlenty BOPBiomes.init(); BOPConfigurationVillages.init(BOPConfiguration.villagesConfigFile); BOPConfigurationStrongholds.init(BOPConfiguration.strongholdsConfigFile); - BOPConfigurationWorldFeatures.init(BOPConfiguration.worldFeaturesConfigFile); BiomeTweaker.init(); BOPEntities.init(); BOPVanillaCompat.init(); diff --git a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationWorldFeatures.java b/src/main/java/biomesoplenty/common/configuration/BOPConfigurationWorldFeatures.java deleted file mode 100644 index d3c69ea0e..000000000 --- a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationWorldFeatures.java +++ /dev/null @@ -1,48 +0,0 @@ -package biomesoplenty.common.configuration; - -import biomesoplenty.common.world.generation.WorldGenFieldAssociation; -import cpw.mods.fml.common.FMLLog; -import net.minecraftforge.common.config.Configuration; -import org.apache.logging.log4j.Level; - -import java.io.File; -import java.util.Map.Entry; - -public class BOPConfigurationWorldFeatures -{ - public static Configuration config; - - public static void init(File configFile) - { - config = new Configuration(configFile); - - try - { - config.load(); - - for (Entry entry : WorldGenFieldAssociation.featureMap.entrySet()) - { - String key = entry.getKey(); - - boolean featureEnabled = true; - - featureEnabled = config.get("World Features", key.replace("PerChunk", "Generation"), true).getBoolean(true); - - if (!featureEnabled) - { - WorldGenFieldAssociation.featureMap.remove(key); - } - } - } - catch (Exception e) - { - FMLLog.log(Level.ERROR, "Biomes O Plenty has had a problem loading its configuration", e); - } - finally - { - if (config.hasChanged()) { - config.save(); - } - } - } -}