This commit is contained in:
Tntrololol 2015-05-10 13:11:46 -05:00
parent 1db1c02077
commit 6353f02541

View file

@ -135,8 +135,7 @@ public class ConfigTechReborn {
public static Configuration config;
private ConfigTechReborn(File configFile)
{
private ConfigTechReborn(File configFile) {
config = new Configuration(configFile);
config.load();
@ -146,8 +145,7 @@ public class ConfigTechReborn {
}
public static ConfigTechReborn initialize(File configFile)
{
public static ConfigTechReborn initialize(File configFile) {
if (instance == null)
instance = new ConfigTechReborn(configFile);
@ -158,10 +156,8 @@ public class ConfigTechReborn {
return instance;
}
public static ConfigTechReborn instance()
{
if (instance == null)
{
public static ConfigTechReborn instance() {
if (instance == null) {
throw new IllegalStateException(
"Instance of TechReborn Config requested before initialization");
@ -169,8 +165,7 @@ public class ConfigTechReborn {
return instance;
}
public static void Configs()
{
public static void Configs() {
GalenaOreTrue = config
.get(CATEGORY_WORLD,
StatCollector