From 4bca77ac1b3667423c58ab6683daa5337180a67f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 29 Aug 2023 01:08:25 +0200 Subject: fixed negative coins per copper price --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2') 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() -- cgit