From 6cbf960deae05d3e22c857cf3d50416c6138ff2d Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 30 Apr 2013 08:23:54 -0400 Subject: [PATCH] Use the right value here. --- .../gmail/nossr50/util/scoreboards/ScoreboardManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java index 84b3a421f..f365f5752 100644 --- a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java +++ b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardManager.java @@ -140,10 +140,11 @@ public class ScoreboardManager { private static void updatePlayerSkillScores(PlayerProfile profile, SkillType skill, Objective objective) { Server server = mcMMO.p.getServer(); + int currentXP = profile.getSkillXpLevel(skill); objective.getScore(server.getOfflinePlayer("Level")).setScore(profile.getSkillLevel(skill)); - objective.getScore(server.getOfflinePlayer("Current XP")).setScore(profile.getSkillXpLevel(skill)); - objective.getScore(server.getOfflinePlayer("Remaining XP")).setScore(profile.getXpToLevel(skill)); + objective.getScore(server.getOfflinePlayer("Current XP")).setScore(currentXP); + objective.getScore(server.getOfflinePlayer("Remaining XP")).setScore(profile.getXpToLevel(skill) - currentXP); objective.setDisplaySlot(DisplaySlot.SIDEBAR); }