From 83c4d09093e8ec04774d1804d5527df68fb0c17a Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 20 Aug 2013 15:08:10 -0400 Subject: [PATCH] Fix formatting --- src/main/java/com/gmail/nossr50/config/Config.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index 8b5e1887a..49d34c5a5 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -201,7 +201,8 @@ public class Config extends AutoUpdateConfigLoader { // Check if there were any errors if (Misc.noErrorsInConfig(reason)) { mcMMO.p.debug("No errors found in " + fileName + "!"); - } else { + } + else { mcMMO.p.getLogger().warning("Errors were found in " + fileName + "! mcMMO was disabled!"); mcMMO.p.getServer().getPluginManager().disablePlugin(mcMMO.p); mcMMO.p.noErrorsInConfigFiles = false; @@ -409,9 +410,7 @@ public class Config extends AutoUpdateConfigLoader { /* Repair */ public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); } - public double getRepairXP(RepairMaterialType repairMaterialType) { - return config.getDouble("Experience.Repair." + StringUtils.getCapitalized(repairMaterialType.toString())); - } + public double getRepairXP(RepairMaterialType repairMaterialType) { return config.getDouble("Experience.Repair." + StringUtils.getCapitalized(repairMaterialType.toString())); } public boolean getRepairAnvilMessagesEnabled() { return config.getBoolean("Skills.Repair.Anvil_Messages", true); } public int getRepairAnvilId() { return config.getInt("Skills.Repair.Anvil_ID", 42); }