aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-18 11:19:49 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-18 11:19:49 +0100
commitd3e24d497102d4223052699197473dd394f4bb32 (patch)
tree36392e7c851a68b1fff409ab350629ffc02a8b3e
parent848317d8e670125abbe567bdb26500b169a471ab (diff)
downloadskyhanni-d3e24d497102d4223052699197473dd394f4bb32.tar.gz
skyhanni-d3e24d497102d4223052699197473dd394f4bb32.tar.bz2
skyhanni-d3e24d497102d4223052699197473dd394f4bb32.zip
Fixed visitor names having color names sometimes
-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 bfb7a0ee9..584732a81 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -59,7 +59,10 @@ class GardenVisitorFeatures {
if (!config.visitorNeedsDisplay && !config.visitorHighlight) return
- val name = npcItem.name ?: return
+ var name = npcItem.name ?: return
+ if (name.length == name.removeColor().length + 4) {
+ name = name.substring(2)
+ }
val visitor = visitors[name]!!
visitor.entityId = lastClickedNpc
for (line in offerItem.getLore()) {