Cleaning stuff
This commit is contained in:
parent
5ea1f16c45
commit
6a43d84a7f
10 changed files with 127 additions and 93 deletions
|
|
@ -7,19 +7,17 @@ import mysticworld.lib.Booleans;
|
|||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
public class Config {
|
||||
public static Configuration config;
|
||||
|
||||
public static void initialize(File file) {
|
||||
config = new Configuration(file);
|
||||
MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true);
|
||||
Configuration config = new Configuration(file);
|
||||
MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean();
|
||||
//Boolean Configurations
|
||||
Booleans.ENABLE_IMBUED_STONE_GEN = config.get("World Generation", "Enable Imbued Stones Generation", true).getBoolean(true);
|
||||
Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(true);
|
||||
Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(true);
|
||||
Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(true);
|
||||
Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(true);
|
||||
Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(true);
|
||||
Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(true);
|
||||
Booleans.ENABLE_IMBUED_STONE_GEN = config.get("World Generation", "Enable Imbued Stones Generation", true).getBoolean();
|
||||
Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean();
|
||||
Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean();
|
||||
Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean();
|
||||
Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean();
|
||||
Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean();
|
||||
Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean();
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue