aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-10-06 11:39:43 -0400
committerbowser0000 <bowser0000@gmail.com>2020-10-06 11:39:43 -0400
commita0ab465c3d39eac177f45d2b2f6903a27be3ba61 (patch)
treea9c3b83e48ea4efeca5fb399a99049d1de915250
parent0379a3c43be18b22d77056eb5b26b4f239d9988e (diff)
downloadSkyblockMod-a0ab465c3d39eac177f45d2b2f6903a27be3ba61.tar.gz
SkyblockMod-a0ab465c3d39eac177f45d2b2f6903a27be3ba61.tar.bz2
SkyblockMod-a0ab465c3d39eac177f45d2b2f6903a27be3ba61.zip
Fix skill50display freezing action bar
-rw-r--r--src/main/java/me/Danker/TheMod.java2
-rw-r--r--src/main/java/me/Danker/handlers/ScoreboardHandler.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java
index 973a0da..5af08ac 100644
--- a/src/main/java/me/Danker/TheMod.java
+++ b/src/main/java/me/Danker/TheMod.java
@@ -243,7 +243,7 @@ public class TheMod
String[] actionBarSections = event.message.getUnformattedText().split(" {3,}");
for (String section : actionBarSections) {
if (tc.skill50DisplayToggled) {
- if (section.contains("(")) {
+ if (section.contains("+") && section.contains("/") && section.contains("(")) {
if (section.contains("Runecrafting")) return;
String xpGained = section.substring(section.indexOf("+"), section.indexOf("(") - 1);
diff --git a/src/main/java/me/Danker/handlers/ScoreboardHandler.java b/src/main/java/me/Danker/handlers/ScoreboardHandler.java
index e89591b..92fc844 100644
--- a/src/main/java/me/Danker/handlers/ScoreboardHandler.java
+++ b/src/main/java/me/Danker/handlers/ScoreboardHandler.java
@@ -41,7 +41,7 @@ public class ScoreboardHandler {
Collection<Score> scores = scoreboard.getSortedScores(objective);
List<Score> list = Lists.newArrayList(scores.stream()
.filter(input -> input != null && input.getPlayerName() != null && !input.getPlayerName()
- .startsWith("#"))
+ .startsWith("#"))
.collect(Collectors.toList()));
if (list.size() > 15) {