From 12f90f5467f3a2f29339f68d997a5ac647c49db2 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 8 May 2021 23:43:36 +0900 Subject: fix tablist not showing colors. --- .../kr/syeyoung/dungeonsguide/cosmetics/CustomNetworkPlayerInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/cosmetics') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/CustomNetworkPlayerInfo.java b/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/CustomNetworkPlayerInfo.java index ea2cb205..b113c745 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/CustomNetworkPlayerInfo.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/CustomNetworkPlayerInfo.java @@ -45,9 +45,9 @@ public class CustomNetworkPlayerInfo extends NetworkPlayerInfo { String actualName = ""; for (String s : semi_name.split(" ")) { if (TextUtils.stripColor(s).startsWith("[")) continue; - actualName = s; + actualName = TextUtils.stripColor(s); } - List activeCosmetics = DungeonsGuide.getDungeonsGuide().getCosmeticsManager().getActiveCosmeticByPlayerNameLowerCase().get(TextUtils.stripColor(actualName).toLowerCase()); + List activeCosmetics = DungeonsGuide.getDungeonsGuide().getCosmeticsManager().getActiveCosmeticByPlayerNameLowerCase().get(actualName.toLowerCase()); -- cgit