Bläddra i källkod

Fixed the guide usage string showing up every time /skillname was called

GJ 12 år sedan
förälder
incheckning
1c0cafc6c8
2 ändrade filer med 4 tillägg och 1 borttagningar
  1. 1 0
      Changelog.txt
  2. 3 1
      src/main/java/com/gmail/nossr50/skills/SkillGuide.java

+ 1 - 0
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

+ 3 - 1
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()} ));
         }
     }