aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt3
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
}
}
}