From 9e0ffecc8cbc7aadc99cbc916fca64f5e2e2c122 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 15 Jul 2024 17:04:32 +0200 Subject: Backend: Cleaner visitor rarity handling (#2220) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/garden/visitor/GardenVisitorColorNames.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt index 5fa0debe5..fa847703f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt @@ -18,8 +18,7 @@ object GardenVisitorColorNames { visitorColours.clear() visitorItems.clear() for ((visitor, visitorData) in data.visitors) { - val rarity = visitorData.newRarity ?: visitorData.rarity - visitorColours[visitor] = rarity.color.getChatColor() + visitorColours[visitor] = visitorData.rarity.color.getChatColor() visitorItems[visitor] = visitorData.needItems } } -- cgit