aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuna <me@alexia.lol>2024-04-09 19:15:42 +0200
committerGitHub <noreply@github.com>2024-04-09 19:15:42 +0200
commitf41a77e74500ac4123dd3e47e2bd2c2ea6d6e63f (patch)
treee7a6a3eec90f40c0d4193ee9ee85aee8ff19db56 /src
parentca07710d1907a8a0d746f996358dddf15ae12a1b (diff)
downloadskyhanni-f41a77e74500ac4123dd3e47e2bd2c2ea6d6e63f.tar.gz
skyhanni-f41a77e74500ac4123dd3e47e2bd2c2ea6d6e63f.tar.bz2
skyhanni-f41a77e74500ac4123dd3e47e2bd2c2ea6d6e63f.zip
Improvement: Mark Museum donated items as unsalvageable (#1384)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
index 4e266d8e1..a39396bc1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
@@ -29,6 +29,7 @@ import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.MultiFilter
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getExtraAttributes
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRiftExportable
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRiftTransferable
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
@@ -492,6 +493,12 @@ class HideNotClickableItems {
}
}
+ val museumDonated = stack.getExtraAttributes()?.getBoolean("donated_museum") ?: false
+ if (museumDonated) {
+ hideReason = "This item cannot be salvaged! (Donated to Museum)"
+ return true
+ }
+
if (ItemUtils.isSkyBlockMenuItem(stack)) {
hideReason = "The SkyBlock Menu cannot be salvaged!"
return true