From c2d34ca9ec5f61ab21e6f514726b74188b324a20 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 22 Feb 2023 14:22:05 +0100 Subject: Auction Highlighter now shows expired items as well. --- .../at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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 -- cgit