aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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()) {