diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-07-20 04:28:06 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 20:28:06 +0200 |
commit | d2816938d9cfa30c464af649123e7c3ffec3f3bb (patch) | |
tree | 6552324d50ed981acc58f1184878cab3efdc420d /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | |
parent | ae4762561aeccb5db58ffb45c9038da619149f82 (diff) | |
download | skyhanni-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.kt | 2 |
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" |