From f41a77e74500ac4123dd3e47e2bd2c2ea6d6e63f Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 9 Apr 2024 19:15:42 +0200 Subject: Improvement: Mark Museum donated items as unsalvageable (#1384) --- .../hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 -- cgit