aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java b/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
index 8f152a2..a75bc20 100644
--- a/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
+++ b/src/main/java/de/cowtipper/cowlection/listener/skyblock/SkyBlockListener.java
@@ -213,7 +213,7 @@ public class SkyBlockListener {
// pet in pets menu
for (int i = e.toolTip.size() - 1; i >= 0; i--) {
String loreLine = EnumChatFormatting.getTextWithoutFormattingCodes(e.toolTip.get(i));
- if (loreLine.startsWith("--------------------")) { // exp bar to next level
+ if (loreLine.startsWith(" ")) { // exp bar to next level
int beginPetExp = loreLine.indexOf(' ');
int endPetExp = loreLine.indexOf('/');
if (beginPetExp < 0 || endPetExp < 0) {
@@ -364,9 +364,9 @@ public class SkyBlockListener {
for (int loreLineNr = 0; loreLineNr < loreList.tagCount(); ++loreLineNr) {
String loreLineFormatted = loreList.getStringTagAt(loreLineNr);
String loreLine = EnumChatFormatting.getTextWithoutFormattingCodes(loreLineFormatted);
- if (loreLine.startsWith("-------------------- ")) {
+ if (loreLine.startsWith(" ")) { // bar to next level
try {
- String progress = loreLine.substring("-------------------- ".length());
+ String progress = loreLine.substring(loreLine.lastIndexOf(' ') + 1);
int divider = progress.indexOf('/');
if (divider > 0) {
bestiaryOverview.add(new BestiaryEntry(TIER_SUFFIX_PATTERN.matcher(item.getDisplayName()).replaceFirst(""),