diff options
author | alexia <me@alexia.lol> | 2024-01-06 11:22:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 11:22:59 +0100 |
commit | 964f3472fe63b884b004405a5b6bf608eb9c1fb4 (patch) | |
tree | d2e3e05c756244cad870e28ae1a848d51f95fbe2 | |
parent | 4a5ece2e101ae5c5b2d240a61902c42e05ec7bc2 (diff) | |
download | skyhanni-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
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 6 |
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) { |