aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-02 16:27:33 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-02 16:27:33 +0100
commit21227a56a680a317ee7b4645df2e3776a24afd52 (patch)
treeb77393015364c896167488e0f34deb67e9c71ea4 /src/main/java/at/hannibal2/skyhanni/features
parentb1a5ab4e07b2ad0700abd26fc46b2d68cf9c4a81 (diff)
downloadskyhanni-21227a56a680a317ee7b4645df2e3776a24afd52.tar.gz
skyhanni-21227a56a680a317ee7b4645df2e3776a24afd52.tar.bz2
skyhanni-21227a56a680a317ee7b4645df2e3776a24afd52.zip
code cleanup.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt8
1 files changed, 4 insertions, 4 deletions
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 e756590c3..07b0d433a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -136,13 +136,13 @@ class GardenVisitorFeatures {
val list = event.toolTip
var totalPrice = 0.0
- var amountItems = 0
+ var itemsCounter = 0
var endReached = false
for ((i, l) in list.toMutableList().withIndex()) {
val line = l.substring(4)
if (line == "") {
if (config.visitorShowPrice) {
- if (amountItems > 1) {
+ if (itemsCounter > 1) {
val format = NumberUtil.format(totalPrice)
list[1] = list[1] + "$line §f(§6Total §6$format§f)"
}
@@ -170,7 +170,7 @@ class GardenVisitorFeatures {
val format = NumberUtil.format(price)
list[i] = "$line §7(§6$format§7)"
}
- amountItems++
+ itemsCounter++
if (config.visitorExactAmountAndTime) {
val multiplier = NEUItems.getMultiplier(internalName)
@@ -187,7 +187,7 @@ class GardenVisitorFeatures {
} else {
"§cno speed data!"
}
- list.add(i + amountItems, " §7- $formatName($formatSpeed§7)")
+ list.add(i + itemsCounter, " §7- $formatName($formatSpeed§7)")
}
}
}