aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-28 09:08:01 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-28 09:08:01 +0200
commit6f0c913d60972fe9faab8f34af63aedc7615e77b (patch)
treec2a41f627e506eeadb4ca076048c3de1b75b464c /src
parent6a187104e5f88f61069c2c034fa8a1d2375e336e (diff)
downloadskyhanni-6f0c913d60972fe9faab8f34af63aedc7615e77b.tar.gz
skyhanni-6f0c913d60972fe9faab8f34af63aedc7615e77b.tar.bz2
skyhanni-6f0c913d60972fe9faab8f34af63aedc7615e77b.zip
code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt3
1 files changed, 1 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 ee753e17d..176266d1d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -21,8 +21,7 @@ object ItemUtils {
fun ItemStack.cleanName() = this.displayName.removeColor()
- fun isSack(stack: ItemStack): Boolean =
- stack?.getInternalName()?.endsWith("_SACK") ?: false
+ fun isSack(stack: ItemStack) = stack.getInternalName().endsWith("_SACK")
fun ItemStack.getLore(): List<String> {
val tagCompound = this.tagCompound ?: return emptyList()