aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 01:08:25 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 01:08:25 +0200
commit4bca77ac1b3667423c58ab6683daa5337180a67f (patch)
treec356aed7caeac51bd9655e267fe450d6a4ccecb6 /src
parentaa0a596c9c11b22a9c71ed20d2c92b8ddafebd5f (diff)
downloadskyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.tar.gz
skyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.tar.bz2
skyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.zip
fixed negative coins per copper price
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
index a1740c4e5..77909ff74 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
@@ -399,6 +399,9 @@ class GardenVisitorFeatures {
totalPrice -= price
}
}
+ if (totalPrice < 0) {
+ totalPrice = 0.0
+ }
readingItemsNeeded = true
val iterator = list.listIterator()