diff options
author | Walker Selby <git@walkerselby.com> | 2023-10-11 09:46:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 10:46:30 +0200 |
commit | 31790442bd9f79c605072017b249fe26e749b8a8 (patch) | |
tree | 7042ea7da72fd1ed28e499c5ceebf3fbf059c79e | |
parent | 3fd0e2bf09c5de630df610786e2e4c58f8cccd24 (diff) | |
download | skyhanni-31790442bd9f79c605072017b249fe26e749b8a8.tar.gz skyhanni-31790442bd9f79c605072017b249fe26e749b8a8.tar.bz2 skyhanni-31790442bd9f79c605072017b249fe26e749b8a8.zip |
Add workaround to make Mending display as Vitality (#552)
Add workaround to make Mending display as Vitality #552
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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"}" ) } |