aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-07-20 04:28:06 +1000
committerGitHub <noreply@github.com>2023-07-19 20:28:06 +0200
commitd2816938d9cfa30c464af649123e7c3ffec3f3bb (patch)
tree6552324d50ed981acc58f1184878cab3efdc420d /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
parentae4762561aeccb5db58ffb45c9038da619149f82 (diff)
downloadskyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.tar.gz
skyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.tar.bz2
skyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.zip
Merge pull request #314
* hide ignored items * support contains * requested change * Using MultiFilter
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index e9adfe055..9b06dfb8d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -115,6 +115,8 @@ object ItemUtils {
return false
}
+ fun ItemStack.getInternalNameOrNull() = getInternalName().takeIf { it != "" }
+
fun ItemStack.getInternalName(): String {
if (name == "§fWisp's Ice-Flavored Water I Splash Potion") {
return "WISP_POTION"