From 802d1dfa8ecddfe83ce3b78ebc6e01b2278f05cc Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 31 Dec 2012 18:40:15 +0100 Subject: [PATCH] Fixed some mistakes with the path names #404 --- Changelog.txt | 1 + .../gmail/nossr50/config/AdvancedConfig.java | 18 +++++++++--------- src/main/resources/advanced.yml | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 0b3d9c57a..27e8943d4 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -24,6 +24,7 @@ Version 1.3.13-dev = Fixed a bug where only 1 diamond was needed to fully repair a broken item: Repaired the Repair skill! = Fixed a bug where a infinite loop of errors caused by mySQL database could cause the server to crash = Fixed a bug where PartyChangeEvent was fired even when a player isn't able to change parties + = Fixed a bug which caused advanced.yml not to work for Swords = Fixed a NPE with custom blocks ! GJ stopped being a lazy slacker and got stuff done ! Changed code that uses SpoutPlugin to make it compatible with the latest version diff --git a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java index f9a32ce3d..7ab839a42 100644 --- a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java +++ b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java @@ -99,17 +99,17 @@ public class AdvancedConfig extends ConfigLoader { public int getSuperRepairMaxLevel() { return config.getInt("Skills.Repair.SuperRepair_MaxBonusLevel", 1000); } /* SWORDS */ - public int getBleedChanceMax() { return config.getInt("Skills.Sword.Bleed_ChanceMax", 75); } - public int getBleedMaxBonusLevel() { return config.getInt("Skills.Sword.Bleed_MaxBonusLevel", 750); } - public int getBleedMaxTicks() { return config.getInt("Skills.Sword.Bleed_MaxTicks", 3); } - public int getBleedBaseTicks() { return config.getInt("Skills.Sword.Bleed_BaseTicks", 2); } + public int getBleedChanceMax() { return config.getInt("Skills.Swords.Bleed_ChanceMax", 75); } + public int getBleedMaxBonusLevel() { return config.getInt("Skills.Swords.Bleed_MaxBonusLevel", 750); } + public int getBleedMaxTicks() { return config.getInt("Skills.Swords.Bleed_MaxTicks", 3); } + public int getBleedBaseTicks() { return config.getInt("Skills.Swords.Bleed_BaseTicks", 2); } - public int getCounterChanceMax() { return config.getInt("Skills.Sword.Counter_ChanceMax", 30); } - public int getCounterMaxBonusLevel() { return config.getInt("Skills.Sword.Counter_MaxBonusLevel", 600); } - public int getCounterModifier() { return config.getInt("Skills.Sword.Counter_DamageModifier", 2); } + public int getCounterChanceMax() { return config.getInt("Skills.Swords.Counter_ChanceMax", 30); } + public int getCounterMaxBonusLevel() { return config.getInt("Skills.Swords.Counter_MaxBonusLevel", 600); } + public int getCounterModifier() { return config.getInt("Skills.Swords.Counter_DamageModifier", 2); } - public int getSerratedStrikesModifier() { return config.getInt("Skills.Sword.SerratedStrikes_DamageModifier", 4); } - public int getSerratedStrikesTicks() { return config.getInt("Skills.Sword.SerratedStrikes_BleedTicks", 5); } + public int getSerratedStrikesModifier() { return config.getInt("Skills.Swords.SerratedStrikes_DamageModifier", 4); } + public int getSerratedStrikesTicks() { return config.getInt("Skills.Swords.SerratedStrikes_BleedTicks", 5); } /* TAMING */ public int getGoreChanceMax() { return config.getInt("Skills.Taming.Gore_ChanceMax", 100); } public int getGoreMaxBonusLevel() { return config.getInt("Skills.Taming.Gore_MaxBonusLevel", 1000); } diff --git a/src/main/resources/advanced.yml b/src/main/resources/advanced.yml index 1191f3f79..10b3bebd3 100644 --- a/src/main/resources/advanced.yml +++ b/src/main/resources/advanced.yml @@ -77,8 +77,8 @@ Skills: Bleed_MaxBonusLevel: 750 Bleed_MaxTicks: 3 Bleed_BaseTicks: 2 - CounterAttack_ChanceMax: 30 - CounterAttack_MaxBonusLevel: 600 + Counter_ChanceMax: 30 + Counter_MaxBonusLevel: 600 Counter_DamageModifier: 2 SerratedStrikes_DamageModifier: 4 SerratedStrikes_BleedTicks: 5