diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 01:08:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 01:08:25 +0200 |
commit | 4bca77ac1b3667423c58ab6683daa5337180a67f (patch) | |
tree | c356aed7caeac51bd9655e267fe450d6a4ccecb6 /src/main/java/at/hannibal2 | |
parent | aa0a596c9c11b22a9c71ed20d2c92b8ddafebd5f (diff) | |
download | skyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.tar.gz skyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.tar.bz2 skyhanni-4bca77ac1b3667423c58ab6683daa5337180a67f.zip |
fixed negative coins per copper price
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 3 |
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() |