From 5441fcc374779940e125ab50618ced5224d6ea5d Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sun, 11 Aug 2013 15:55:25 +0200 Subject: [PATCH] Fix broken Dodge_DamageModifier config node Also fix a derp with the validation of Arcane_Forging.Keep_Enchants.Chance --- Changelog.txt | 3 ++- .../java/com/gmail/nossr50/config/AdvancedConfig.java | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 604955921..04fe48ddd 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -18,7 +18,8 @@ Version 1.4.07-dev = Fixed a bug with Beast Lore when the entity had no owner but was tamed. = Fixed a bug where AbilityDeactivateEvent would throw an error if the player logged out before his ability ran out. = Fixed a bug where LevelUpEvent would be called for an offline player. - = Fixed a bug where teleport location was never reset if warmup was set to 0 for Chimera Wing. + = Fixed a bug where teleport location was never reset if warmup was set to 0 for Chimaera Wing. + = Fixed a bug where the Dodge DamageModifier wasn't being read from advanced.yml ! Improved profile saving ! Updated localization files ! Party item share category states are now saved when the server shuts down. diff --git a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java index 39aeba0f2..47eaf7ce7 100644 --- a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java +++ b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java @@ -46,7 +46,7 @@ public class AdvancedConfig extends AutoUpdateConfigLoader { } if (getDodgeDamageModifier() <= 1) { - reason.add("Skills.Acrobatics.Dodge_DamageModifer should be greater than 1!"); + reason.add("Skills.Acrobatics.Dodge_DamageModifier should be greater than 1!"); } if (getRollChanceMax() < 1) { @@ -519,15 +519,15 @@ public class AdvancedConfig extends AutoUpdateConfigLoader { reason.add("Skills.Repair.Arcane_Forging.Keep_Enchants.Chance.Rank_1 only accepts values from 0 to 100!"); } - if (getArcaneForgingDowngradeChanceRank2() < 0 || getArcaneForgingDowngradeChanceRank2() > 100) { + if (getArcaneForgingKeepEnchantsChanceRank2() < 0 || getArcaneForgingKeepEnchantsChanceRank2() > 100) { reason.add("Skills.Repair.Arcane_Forging.Keep_Enchants.Chance.Rank_2 only accepts values from 0 to 100!"); } - if (getArcaneForgingDowngradeChanceRank3() < 0 || getArcaneForgingDowngradeChanceRank3() > 100) { + if (getArcaneForgingKeepEnchantsChanceRank3() < 0 || getArcaneForgingKeepEnchantsChanceRank3() > 100) { reason.add("Skills.Repair.Arcane_Forging.Keep_Enchants.Chance.Rank_3 only accepts values from 0 to 100!"); } - if (getArcaneForgingDowngradeChanceRank4() < 0 || getArcaneForgingDowngradeChanceRank4() > 100) { + if (getArcaneForgingKeepEnchantsChanceRank4() < 0 || getArcaneForgingKeepEnchantsChanceRank4() > 100) { reason.add("Skills.Repair.Arcane_Forging.Keep_Enchants.Chance.Rank_4 only accepts values from 0 to 100!"); } @@ -788,7 +788,7 @@ public class AdvancedConfig extends AutoUpdateConfigLoader { /* ACROBATICS */ public double getDodgeChanceMax() { return config.getDouble("Skills.Acrobatics.Dodge_ChanceMax", 20.0D); } public int getDodgeMaxBonusLevel() { return config.getInt("Skills.Acrobatics.Dodge_MaxBonusLevel", 800); } - public int getDodgeDamageModifier() { return config.getInt("Skills.Acrobatics.Dodge_DamageModifer", 2); } + public int getDodgeDamageModifier() { return config.getInt("Skills.Acrobatics.Dodge_DamageModifier", 2); } public double getRollChanceMax() { return config.getDouble("Skills.Acrobatics.Roll_ChanceMax", 100.0D); } public int getRollMaxBonusLevel() { return config.getInt("Skills.Acrobatics.Roll_MaxBonusLevel", 1000); }