aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-22 14:22:05 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-22 14:22:05 +0100
commitfabfab64dd11b1e00daff536aeca225cb53b654f (patch)
tree910bb19ba00c07f96322fd926ffa7fc9d365cd4f /src/main/java/at/hannibal2/skyhanni/features
parent872b7da36b75fe5772616941b2adf4049a40a351 (diff)
downloadSkyHanni-fabfab64dd11b1e00daff536aeca225cb53b654f.tar.gz
SkyHanni-fabfab64dd11b1e00daff536aeca225cb53b654f.tar.bz2
SkyHanni-fabfab64dd11b1e00daff536aeca225cb53b654f.zip
Auction Highlighter now shows expired items as well.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
index ba1d3a680..453707c5b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt
@@ -28,9 +28,13 @@ class AuctionsHighlighter {
if (slot.slotNumber != slot.slotIndex) continue
val stack = slot.stack ?: continue
- if (stack.getLore().any { it == "§7Status: §aSold!" }) {
+ val lore = stack.getLore()
+ if (lore.any { it == "§7Status: §aSold!" }) {
slot highlight LorenzColor.GREEN
}
+ if (lore.any { it == "§7Status: §cExpired!" }) {
+ slot highlight LorenzColor.RED
+ }
}
}
} \ No newline at end of file