aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/AuctionsHighlighter.kt6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
index 912e09531..5f2b46ca8 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Inventory.java
@@ -140,7 +140,7 @@ public class Inventory {
@Expose
@ConfigOption(name = "Highlight Auctions",
- desc = "Highlight own items that are sold in green.")
+ desc = "Highlight own items that are sold in green and that are expired in red.")
@ConfigEditorBoolean
public boolean highlightAuctions = true;
}
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