aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-03-12 02:00:38 +1100
committerGitHub <noreply@github.com>2023-03-11 16:00:38 +0100
commit95e17c191b8a0bdfa5af09a9cf658fe741ecaafc (patch)
treeaba42bec9e134cf4c4fac95f986a464c3c70ce73
parent14ebdfce401ff955d6d00bf00684ac1058d26259 (diff)
downloadNotEnoughUpdates-95e17c191b8a0bdfa5af09a9cf658fe741ecaafc.tar.gz
NotEnoughUpdates-95e17c191b8a0bdfa5af09a9cf658fe741ecaafc.tar.bz2
NotEnoughUpdates-95e17c191b8a0bdfa5af09a9cf658fe741ecaafc.zip
Fix champion showing -1 on combat overlay if you dont have it (#647)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
index 45ce0098..3bd5150f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/CombatSkillOverlay.java
@@ -245,7 +245,7 @@ public class CombatSkillOverlay
lineMap.put(0, EnumChatFormatting.AQUA + "Kills: " + EnumChatFormatting.YELLOW + format.format(counterInterp));
}
- if (championTier <= 9) {
+ if (championTier <= 9 && championXp >= 0) {
int counterInterp = (int) interp(championXp, championXpLast);
lineMap.put(
6,