aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 22:57:48 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 22:57:48 +0200
commite540598b94ae1e495e4bc4ef958799063225831d (patch)
tree2c2adfb94aa33534da42c2c118f88961b39a4bc6 /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
parent5cdd4e0b75b97598b46a548422b083573833956c (diff)
downloadskyhanni-e540598b94ae1e495e4bc4ef958799063225831d.tar.gz
skyhanni-e540598b94ae1e495e4bc4ef958799063225831d.tar.bz2
skyhanni-e540598b94ae1e495e4bc4ef958799063225831d.zip
fixed coop soulbound item check
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 243cbc1dd..60858bc27 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -31,7 +31,10 @@ object ItemUtils {
fun ItemStack.getLore() = ItemUtil.getItemLore(this)
- fun isSoulBound(stack: ItemStack): Boolean = stack.getLore().any { it.contains(" Soulbound ") }
+ fun isCoopSoulBound(stack: ItemStack): Boolean =
+ stack.getLore().any {
+ it == "§8§l* §8Co-op Soulbound §8§l*" || it == "§8§l* §8Soulbound §8§l*"
+ }
fun isRecombobulated(stack: ItemStack): Boolean = stack.getLore().any { it.contains("§k") }