aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
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 /src/main/java/io
parent1fec0d019215df8c57d410c18bd06445d8c2ded7 (diff)
downloadNotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.tar.gz
NotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.tar.bz2
NotEnoughUpdates-16fedc90309a898bc709eaadc944fd047300fd0d.zip
Fixed pet overlay going to level 100 (#268)
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java1
1 files changed, 1 insertions, 0 deletions
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;
}