diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-16 20:27:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-16 20:27:25 +0200 |
commit | 48a157a5385bf23ad7424db2de2a30b9b77e8681 (patch) | |
tree | 077dc68d76ebadd51a607b7d1e6a7179781d804f | |
parent | de8b42fecd40c2aff2336a2110f2955838abe924 (diff) | |
download | skyhanni-48a157a5385bf23ad7424db2de2a30b9b77e8681.tar.gz skyhanni-48a157a5385bf23ad7424db2de2a30b9b77e8681.tar.bz2 skyhanni-48a157a5385bf23ad7424db2de2a30b9b77e8681.zip |
Fixed green color not showing when numbers are outdated
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt index b28cc1d7b..d3be8269f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt @@ -64,6 +64,7 @@ class BazaarOrderHelper { for (line in itemLore) { if (filledPattern.matcher(line).matches()) { slot highlight LorenzColor.GREEN + return } val matcher = pricePattern.matcher(line) @@ -71,7 +72,7 @@ class BazaarOrderHelper { val price = matcher.group("number").replace(",", "").toDouble() if (buyOrSell.first && price < data.sellPrice || buyOrSell.second && price > data.buyPrice) { slot highlight LorenzColor.GOLD - break + return } } } |