diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 15:51:23 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 15:51:23 +0200 |
commit | 2bb1f6e14426222faee8f9840291871f28f58020 (patch) | |
tree | d903a21e5e2d6c2dc30eb256f1bb622e6b7624d5 /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | |
parent | 75f233e2f7042e361c4029d8cf704c51685e217c (diff) | |
download | skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.tar.gz skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.tar.bz2 skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.zip |
Fixed non bazaar items + wisp ice flavored water not working
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 7ed8e24fa..f36f9a60c 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -115,7 +115,12 @@ object ItemUtils { return false } - fun ItemStack.getInternalName() = NEUItems.getInternalName(this) + fun ItemStack.getInternalName(): String { + if (name == "§fWisp's Ice-Flavored Water I Splash Potion") { + return "WISP_POTION" + } + return NEUItems.getInternalName(this) + } fun ItemStack.isVanilla() = NEUItems.isVanillaItem(this) |