aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-18 10:58:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-18 10:58:48 +0100
commit848317d8e670125abbe567bdb26500b169a471ab (patch)
treef114f3f93d48f27d5036913dd6a8e3a8b1fc5cad /src
parent7ea3248b48ff5df9c20d272e051bfa75d36407e4 (diff)
downloadskyhanni-848317d8e670125abbe567bdb26500b169a471ab.tar.gz
skyhanni-848317d8e670125abbe567bdb26500b169a471ab.tar.bz2
skyhanni-848317d8e670125abbe567bdb26500b169a471ab.zip
Fixed visitor names not having color names (WTF hypixel alpha moments)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt5
1 files changed, 4 insertions, 1 deletions
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)
}
}