diff options
author | syeyoung <cyong06@naver.com> | 2021-04-17 21:00:21 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-04-17 21:00:21 +0900 |
commit | 6113dd0a33fbf230044588020ef1b09ba397c96a (patch) | |
tree | f74b823f532d1f466242d48a0de5f403a8164e58 /src/main/java/kr/syeyoung/dungeonsguide/features/impl | |
parent | d2cdb6574ec2a9f66d0cca146a199f3f091cf340 (diff) | |
download | Skyblock-Dungeons-Guide-6113dd0a33fbf230044588020ef1b09ba397c96a.tar.gz Skyblock-Dungeons-Guide-6113dd0a33fbf230044588020ef1b09ba397c96a.tar.bz2 Skyblock-Dungeons-Guide-6113dd0a33fbf230044588020ef1b09ba397c96a.zip |
necron
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonDeaths.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonDeaths.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonDeaths.java index 9d61c382..c50333b3 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonDeaths.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonDeaths.java @@ -116,7 +116,9 @@ public class FeatureDungeonDeaths extends TextHUDFeature implements ChatListener for (NetworkPlayerInfo networkPlayerInfoIn : Minecraft.getMinecraft().thePlayer.sendQueue.getPlayerInfoMap()) { String name = networkPlayerInfoIn.getDisplayName() != null ? networkPlayerInfoIn.getDisplayName().getFormattedText() : ScorePlayerTeam.formatPlayerName(networkPlayerInfoIn.getPlayerTeam(), networkPlayerInfoIn.getGameProfile().getName()); if (name.contains("Deaths")) { - return Integer.parseInt(TextUtils.keepIntegerCharactersOnly(TextUtils.keepScoreboardCharacters(TextUtils.stripColor(name)))); + String whatever = TextUtils.keepIntegerCharactersOnly(TextUtils.keepScoreboardCharacters(TextUtils.stripColor(name))); + if (whatever.isEmpty()) break; + return Integer.parseInt(whatever); } } DungeonContext context = skyblockStatus.getContext(); |