瀏覽代碼

Updated changelog. for loops > while loops

nossr50 13 年之前
父節點
當前提交
ccfce843be
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 2 0
      Changelog.txt
  2. 2 5
      src/main/java/com/gmail/nossr50/util/Page.java

+ 2 - 0
Changelog.txt

@@ -8,12 +8,14 @@ Key:
   - Removal
 
 Version 1.3.02
+ + Added in game guides for each skill, simply type /skillname ? to access them
  ! Changed Tree Feller to hand out 1/4 of normal XP for each JUNGLE LOG block it fells
  ! Changed Tree Feller to only fell trees if you have enough durability
  ! Changed Tree Feller to cause injury if your axe splinters from a failed Tree Feller attempt
  ! Changed invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour
  ! Changed Ignition to add fire ticks rather than replacing them.
  ! Changed Axes critical to have a max critical rate of 37.5% down from 75%
+ = Fixed bug where Taming defensive checks got called twice
  = Fixed Shake not working correctly
  = Fixed bug with Axes command displaying wrong Greater Impact bonus damage
  = Fixed bug where Impact didn't apply bonus damage

+ 2 - 5
src/main/java/com/gmail/nossr50/util/Page.java

@@ -51,12 +51,9 @@ public class Page {
     
     public static void clearChat(Player player)
     {
-        //Extremely ugly way of making the screen clear up
-        int x = 0;
-        while(x < 20)
+        for(int x = 0; x < 20; x++)
         {
             player.sendMessage("");
-            x++;
         }
     }
     
@@ -69,9 +66,9 @@ public class Page {
                 String capitalized = m.getCapitalized(skilltype.toString());
                 String address = "Guides."+capitalized;
                 
-                Page.clearChat(player);
                 if(args.length > 1 && m.isInt(args[1]) && m.getInt(args[1]) <= Page.getTotalPageNumber(address))
                 {
+                    Page.clearChat(player);
                     for(String target : Page.grabPageContents(capitalized+" Guide", address, m.getInt(args[1])))
                     {
                         player.sendMessage(target);