From 31790442bd9f79c605072017b249fe26e749b8a8 Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Wed, 11 Oct 2023 09:46:30 +0100 Subject: Add workaround to make Mending display as Vitality (#552) Add workaround to make Mending display as Vitality #552 --- .../at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index 5dc5b9ea3..96e27927b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -270,9 +270,11 @@ object EstimatedItemValue { if (price != null) { subTotal += price } + var displayName = attr.first + if (displayName == ("MENDING")) displayName = "VITALITY" list.add( " §9${ - attr.first.split("_").joinToString(" ") { it.firstLetterUppercase() } + displayName.split("_").joinToString(" ") { it.firstLetterUppercase() } } ${attr.second}§7: §6${if (price != null) NumberUtil.format(price) else "Unknown"}" ) } -- cgit