Updated changelog. for loops > while loops

This commit is contained in:
nossr50 2012-03-03 10:39:18 -08:00
parent cb3bc755a6
commit ccfce843be
2 changed files with 4 additions and 5 deletions

View File

@ -8,12 +8,14 @@ Key:
- Removal - Removal
Version 1.3.02 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 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 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 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 invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour
! Changed Ignition to add fire ticks rather than replacing them. ! 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% ! 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 Shake not working correctly
= Fixed bug with Axes command displaying wrong Greater Impact bonus damage = Fixed bug with Axes command displaying wrong Greater Impact bonus damage
= Fixed bug where Impact didn't apply bonus damage = Fixed bug where Impact didn't apply bonus damage

View File

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