From 1c0cafc6c80c54bcc48e14fc5cf919e151eff892 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 30 Jan 2013 12:30:45 -0500 Subject: [PATCH] Fixed the guide usage string showing up every time /skillname was called --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/skills/SkillGuide.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 57bb14c62..fc320ce18 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -20,6 +20,7 @@ Version 1.4.00-dev + Added XP bonus for Archery based on distance from shooter to target + Added ability to config Hylian Luck drops through treasures.yml + Added party XP sharing + = Fixed the guide usage string showing up every time /skillname was called = Fixed Spout not being able to precache our resources properly, and therefore making our XP bars fail = Fixed Spout config files loading / generating when they shouldn't have = Fixed mod config files loading / generating when they shouldn't have diff --git a/src/main/java/com/gmail/nossr50/skills/SkillGuide.java b/src/main/java/com/gmail/nossr50/skills/SkillGuide.java index 9a94503a7..61ab35c9b 100644 --- a/src/main/java/com/gmail/nossr50/skills/SkillGuide.java +++ b/src/main/java/com/gmail/nossr50/skills/SkillGuide.java @@ -89,7 +89,9 @@ public final class SkillGuide { } } } - else { + + // We have to specify this, else we get the usage string every time we call /skillname... + else if (args.length != 0) { player.sendMessage(LocaleLoader.getString("Guides.Usage", new Object[] {localized.toLowerCase()} )); } }