From 21227a56a680a317ee7b4645df2e3776a24afd52 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 2 Mar 2023 16:27:33 +0100 Subject: code cleanup. --- .../hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main') 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)") } } } -- cgit