diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-22 00:19:52 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-22 00:19:52 +0900 |
commit | 1da5c0fa1b0634b7fd06869ec0de424515025b41 (patch) | |
tree | 77ab230259c798ba8e02c0fbfed4a34dd50471da | |
parent | 53bcddbcbbcb4470a8d06019936420d983028e9b (diff) | |
download | Skyblock-Dungeons-Guide-1da5c0fa1b0634b7fd06869ec0de424515025b41.tar.gz Skyblock-Dungeons-Guide-1da5c0fa1b0634b7fd06869ec0de424515025b41.tar.bz2 Skyblock-Dungeons-Guide-1da5c0fa1b0634b7fd06869ec0de424515025b41.zip |
Fix location detection
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index bb7c0a99..e05edb00 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -70,8 +70,7 @@ public class SkyblockStatus { Collection<Score> scores = scoreboard.getSortedScores(scoreObjective); boolean foundDungeon = false; for (Score sc:scores) { - if (sc.getPlayerName() == null) continue; - ScorePlayerTeam scorePlayerTeam = scoreboard.getTeam(sc.getPlayerName()); + ScorePlayerTeam scorePlayerTeam = scoreboard.getPlayersTeam(sc.getPlayerName()); String strippedLine = TextUtils.keepScoreboardCharacters(TextUtils.stripColor(ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()))).trim(); if (strippedLine.contains("Dungeon Cleared: ")) { |