From ccfce843beae0705fa24026212646ad3977f2c88 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 3 Mar 2012 10:39:18 -0800 Subject: [PATCH] Updated changelog. for loops > while loops --- Changelog.txt | 2 ++ src/main/java/com/gmail/nossr50/util/Page.java | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 865a890df..cb64e25d3 100644 --- a/Changelog.txt +++ b/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 diff --git a/src/main/java/com/gmail/nossr50/util/Page.java b/src/main/java/com/gmail/nossr50/util/Page.java index 0212825a7..1bcfa2fb5 100644 --- a/src/main/java/com/gmail/nossr50/util/Page.java +++ b/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);