aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt4
1 files changed, 2 insertions, 2 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 6fbbb7923..5f5b1eea5 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -168,7 +168,7 @@ class GardenVisitorFeatures {
val price = NEUItems.getPrice(internalName) * amount
totalPrice += price
val format = NumberUtil.format(price)
- list[i] = "$line §7(§6$format§7)"
+ list[i+ itemsWithSpeedCounter] = "$line §7(§6$format§7)"
}
itemsCounter++
@@ -199,7 +199,7 @@ class GardenVisitorFeatures {
if (matcher.matches()) {
val coppers = matcher.group(1).replace(",", "").toInt()
val pricePerCopper = NumberUtil.format((totalPrice / coppers).toInt())
- list[i + itemsWithSpeedCounter] = list[i + itemsWithSpeedCounter] + " §7(Copper price §6$pricePerCopper§7)"
+ list[i + itemsWithSpeedCounter] = "$line §7(Copper price §6$pricePerCopper§7)"
}
}
}