aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2024-01-06 11:22:59 +0100
committerGitHub <noreply@github.com>2024-01-06 11:22:59 +0100
commit964f3472fe63b884b004405a5b6bf608eb9c1fb4 (patch)
treed2e3e05c756244cad870e28ae1a848d51f95fbe2 /src/main/java/at/hannibal2
parent4a5ece2e101ae5c5b2d240a61902c42e05ec7bc2 (diff)
downloadskyhanni-964f3472fe63b884b004405a5b6bf608eb9c1fb4.tar.gz
skyhanni-964f3472fe63b884b004405a5b6bf608eb9c1fb4.tar.bz2
skyhanni-964f3472fe63b884b004405a5b6bf608eb9c1fb4.zip
Only show vacuum bag on your own vacuums (#833)
Only show vacuum bag on your own vacuums. #833
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
index a72a6b58b..29473a88a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -204,6 +204,12 @@ object ItemDisplayOverlayFeatures {
if (VACUUM_GARDEN.isSelected() && item.getInternalNameOrNull() in PestAPI.vacuumVariants) {
for (line in lore) {
+ if (line.contains("Click to trade!") || line.contains("Starting bid:") || line.contains("Buy it now:")) {
+ return ""
+ }
+ }
+
+ for (line in lore) {
gardenVacuumPatterm.matchMatcher(line) {
val pests = group("amount").formatNumber()
return if (config.vacuumBagCap) {