mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
Debug testing for BlockBreak errors with Spout.
This commit is contained in:
parent
b70e868b5c
commit
2082c479f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user