From 91f34d74d9e1636f4ef4dcd56508a9eb80fd1a14 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Mon, 28 Jan 2019 22:03:44 +0100 Subject: [PATCH] Show xp globe goal only if goal > current xp Closes #7066 Signed-off-by: Tomas Slusny --- .../runelite/client/plugins/xpglobes/XpGlobesOverlay.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.java index dda4c53f42..1b487ebe5c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/xpglobes/XpGlobesOverlay.java @@ -175,6 +175,11 @@ public class XpGlobesOverlay extends Overlay private void drawProgressLabel(Graphics2D graphics, XpGlobe globe, int startXp, int goalXp, int x, int y) { + if (goalXp <= globe.getCurrentXp()) + { + return; + } + // Convert to int just to limit the decimal cases String progress = (int) (getSkillProgress(startXp, globe.getCurrentXp(), goalXp)) + "%"; @@ -254,7 +259,7 @@ public class XpGlobesOverlay extends Overlay .right(skillCurrentXp) .build()); - if (goalXp != -1) + if (goalXp > mouseOverSkill.getCurrentXp()) { XpActionType xpActionType = xpTrackerService.getActionType(mouseOverSkill.getSkill());