From 7dd36ec0a4c4c2648ea1e692e4e981d1566adae3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 18 Mar 2023 11:19:49 +0100 Subject: Fixed visitor names having color names sometimes --- .../at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) { -- cgit