diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 23:59:15 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 23:59:15 +0200 |
commit | 3539dbe69a0782c519aa7d0fd38b7b58df154fd8 (patch) | |
tree | bd800256829c8ebd7533a119fdc69fa6c4c526ed /src/main/java/at/hannibal2/skyhanni/items | |
parent | e8acfdf4549ff84636a1b42c52e9c879d3c8d558 (diff) | |
download | skyhanni-3539dbe69a0782c519aa7d0fd38b7b58df154fd8.tar.gz skyhanni-3539dbe69a0782c519aa7d0fd38b7b58df154fd8.tar.bz2 skyhanni-3539dbe69a0782c519aa7d0fd38b7b58df154fd8.zip |
add attribute fusion gui to hide not clickable
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/items')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt index 28fcc065d..500133a53 100644 --- a/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/items/HideNotClickableItems.kt @@ -179,11 +179,20 @@ class HideNotClickableItems { hideFishingBag(chestName, stack) -> true hidePotionBag(chestName, stack) -> true hidePrivateIslandChest(chestName, stack) -> true - + hideAttributeFusion(chestName, stack) -> true else -> false } } + private fun hideAttributeFusion(chestName: String, stack: ItemStack): Boolean { + if (!chestName.startsWith("Attribute Fusion")) return false + + if (ItemUtils.hasAttributes(stack)) return false + + hideReason = "This item has no attributes!" + return true + } + private fun hidePrivateIslandChest(chestName: String, stack: ItemStack): Boolean { if (chestName != "Chest" && chestName != "Large Chest") return false //TODO make check if player is on private island |