Debug testing for BlockBreak errors with Spout.

This commit is contained in:
GJ 2012-04-03 00:56:05 -04:00
parent b70e868b5c
commit 2082c479f1

View File

@ -191,7 +191,7 @@ public class Skills {
public static void XpCheckSkill(SkillType skillType, Player player) {
PlayerProfile PP = Users.getProfile(player);
int skillups = 0;
if (PP.getSkillXpLevel(skillType) >= PP.getXpToLevel(skillType)) {
while (PP.getSkillXpLevel(skillType) >= PP.getXpToLevel(skillType)) {
@ -234,6 +234,12 @@ public class Skills {
}
}
/* DEBUG */
if (player == null) {
System.out.println("Why am I null?");
return;
}
/* Always update XP Bar (Check if no levels were gained first to remove redundancy) */
if (skillups == 0 && LoadProperties.spoutEnabled && player instanceof SpoutPlayer) {
SpoutPlayer sPlayer = (SpoutPlayer) player;