From 2418918ebd2d2bdcd691cb5f05d2f2887faea0ee Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 4 Jan 2017 03:24:21 +0100 Subject: refactored some config related parts --- .../java/com/sosnitzka/taiga/TAIGAConfiguration.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/main/java/com/sosnitzka/taiga/TAIGAConfiguration.java') diff --git a/src/main/java/com/sosnitzka/taiga/TAIGAConfiguration.java b/src/main/java/com/sosnitzka/taiga/TAIGAConfiguration.java index e5bb638..568b080 100644 --- a/src/main/java/com/sosnitzka/taiga/TAIGAConfiguration.java +++ b/src/main/java/com/sosnitzka/taiga/TAIGAConfiguration.java @@ -110,16 +110,13 @@ public class TAIGAConfiguration { final int PALLADIUM_DEFAULT = 10; final int ABYSSUM_DEFAULT = 4; - final boolean FALSE = false; - final boolean TRUE = true; - - Property ironSwitch = config.get(CATEGORY_NAME_GENERAL, "Extra Iron Switch", FALSE); - ironSwitch.setComment("Switch ore on/off"); + Property ironSwitch = config.get(CATEGORY_NAME_GENERAL, "Additional Iron", false); + ironSwitch.setComment("Switch additional ore on/off"); ironSwitch.setLanguageKey("gui.taiga_configuration.gen_iron"); - Property endSwitch = config.get(CATEGORY_NAME_GENERAL, "Extra Endstone Switch", TRUE); - endSwitch.setComment("Switch extra End on/off"); + Property endSwitch = config.get(CATEGORY_NAME_GENERAL, "Additional Endstone", true); + endSwitch.setComment("Switch additional endstone on/off"); endSwitch.setLanguageKey("gui.taiga_configuration.gen_end"); /* @@ -202,8 +199,8 @@ public class TAIGAConfiguration { if (readFieldsFromConfig) { - ironGen = ironSwitch.getBoolean(FALSE); - endGen = endSwitch.getBoolean(TRUE); + ironGen = ironSwitch.getBoolean(false); + endGen = endSwitch.getBoolean(true); IRON_VAL = ironValueProp.getInt(IRON_DEFAULT); if (IRON_VAL > RESFAC_MAX_VALUE || IRON_VAL < RESFAC_MIN_VALUE) { IRON_VAL = IRON_DEFAULT; @@ -275,6 +272,7 @@ public class TAIGAConfiguration { } ironSwitch.set(ironGen); + endSwitch.set(endGen); ironValueProp.set(IRON_VAL); tiberiumValueProp.set(TIBERIUM_VAL); prometheumValueProp.set(PROMETHEUM_VAL); -- cgit v1.2.3