From 1da5c0fa1b0634b7fd06869ec0de424515025b41 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sun, 22 Nov 2020 00:19:52 +0900 Subject: Fix location detection --- src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide') 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 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: ")) { -- cgit