From e3a19975c6974413a327f8ad95e4f44aac3f5d76 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 2 Mar 2022 23:05:58 +0900 Subject: <3 Hypixel - Fix Is-In dungeon detection --- src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index a58bfb26..7e2286b3 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -109,9 +109,9 @@ public class SkyblockStatus { for (Score sc:scores) { ScorePlayerTeam scorePlayerTeam = scoreboard.getPlayersTeam(sc.getPlayerName()); String strippedLine = TextUtils.keepScoreboardCharacters(TextUtils.stripColor(ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()))).trim(); - if (strippedLine.contains("Dungeon Cleared: ")) { + if (strippedLine.contains("Cleared: ")) { foundDungeon = true; - percentage = Integer.parseInt(strippedLine.substring(17)); + percentage = Integer.parseInt(strippedLine.substring(9).split(" ")[0]); } if (ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()).startsWith(" §7⏣")) { dungeonName = strippedLine.trim(); -- cgit