From 6f0c913d60972fe9faab8f34af63aedc7615e77b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 28 Sep 2023 09:08:01 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 { val tagCompound = this.tagCompound ?: return emptyList() -- cgit