diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-30 12:35:34 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-30 12:35:34 +0200 |
commit | e51dd4e7c0f94a47a74a8ec4fb6a1ef6d50099dd (patch) | |
tree | 1a95ee49b3f509c9bc0053ea6c8cfce2c6e2d386 /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | |
parent | 8bcdd9b6de9f7fc53cfed31ab84187092ea4dc6e (diff) | |
download | skyhanni-e51dd4e7c0f94a47a74a8ec4fb6a1ef6d50099dd.tar.gz skyhanni-e51dd4e7c0f94a47a74a8ec4fb6a1ef6d50099dd.tar.bz2 skyhanni-e51dd4e7c0f94a47a74a8ec4fb6a1ef6d50099dd.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 54cdfa91e..1fb4c4554 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -44,8 +44,8 @@ object ItemUtils { } // TODO change else janni is sad - fun isCoopSoulBound(stack: ItemStack): Boolean = - stack.getLore().any { + fun ItemStack.isCoopSoulBound(): Boolean = + getLore().any { it == "§8§l* §8Co-op Soulbound §8§l*" || it == "§8§l* §8Soulbound §8§l*" } |