From 848317d8e670125abbe567bdb26500b169a471ab Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 18 Mar 2023 10:58:48 +0100 Subject: Fixed visitor names not having color names (WTF hypixel alpha moments) --- .../at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt index 6843fefdd..bfb7a0ee9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt @@ -239,7 +239,10 @@ class GardenVisitorFeatures { found = false continue } - val name = line.substring(3) + var name = line.trim().replace("§r", "") + if (!name.contains("§")) { + name = "§f$name" + } visitorsInTab.add(name) } } -- cgit