aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-09-13 00:24:07 +1000
committerGitHub <noreply@github.com>2022-09-12 16:24:07 +0200
commit16fedc90309a898bc709eaadc944fd047300fd0d (patch)
tree1bbb64a8df4736d13c6fd63b0b26c8baf3275321
parent1fec0d019215df8c57d410c18bd06445d8c2ded7 (diff)
downloadNotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.tar.gz
NotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.tar.bz2
NotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.zip
Fixed pet overlay going to level 100 (#268)
-rw-r--r--Update Notes/2.1.md1
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/Update Notes/2.1.md b/Update Notes/2.1.md
index 9c73e649..fa49a1d0 100644
--- a/Update Notes/2.1.md
+++ b/Update Notes/2.1.md
@@ -10,6 +10,7 @@
- [Donpireso replied to a sba dev's email about some of sba features, and it seems to imply that blocking clicks in guis aren't bannable](https://cdn.discordapp.com/attachments/823769568933576764/906101631861526559/unknown.png)
- Made it if you hold shift in the enchant solvers it overrides prevent missclicks - nopo
- Fixed pet overlay not updating when going into /pets - nopo
+- Fixed pet overlay randomly going to level 100 - nopo
- [Added an armor overlay for the new armor slots](https://cdn.discordapp.com/attachments/832652653292027904/922399046528794634/unknown.png)
- Added a pet overlay that shows your active pet in your inventory - nopo
- [Price graph for items on /ah and /bz](https://cdn.discordapp.com/attachments/896407218151366687/926968296929107999/unknown.png) - DeDiamondPro
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java
index 58794e07..81eea343 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java
@@ -187,6 +187,7 @@ public class XPInformation {
skillInfo.currentXp += updateWithPercentage.get(skill) / 100f * cap;
skillInfo.totalXp += skillInfo.currentXp;
skillInfo.currentXpMax = cap;
+ break;
} else {
skillInfo.totalXp += cap;
}