aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorLuna <luna@alexia.lol>2024-07-15 17:04:32 +0200
committerGitHub <noreply@github.com>2024-07-15 17:04:32 +0200
commit9e0ffecc8cbc7aadc99cbc916fca64f5e2e2c122 (patch)
tree7cd9401813698c9e1b4eca8c243ac0613885a387 /src/main/java/at/hannibal2/skyhanni/features
parent73f2443fc869127db948234a5fe8de277faacfba (diff)
downloadskyhanni-9e0ffecc8cbc7aadc99cbc916fca64f5e2e2c122.tar.gz
skyhanni-9e0ffecc8cbc7aadc99cbc916fca64f5e2e2c122.tar.bz2
skyhanni-9e0ffecc8cbc7aadc99cbc916fca64f5e2e2c122.zip
Backend: Cleaner visitor rarity handling (#2220)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorColorNames.kt3
1 files changed, 1 insertions, 2 deletions
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
}
}