diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 00:58:54 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 00:58:54 +0200 |
commit | ab0e2df6feae63caec66143a5328ad1c95adff82 (patch) | |
tree | 34b9ce910992abcb7159baeada7222b5868e8aec /src/main/java/at/hannibal2/skyhanni | |
parent | e068369777bc96cffef1eb382a94d8999787aa1b (diff) | |
download | skyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.tar.gz skyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.tar.bz2 skyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.zip |
reverted name change in getInternalName
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 2 |
1 files changed, 1 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 5b9328682..3df9e4673 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -122,7 +122,7 @@ object ItemUtils { fun ItemStack.getInternalName_new() = NEUInternalName.from(getInternalName()) fun ItemStack.getInternalName(): String { - if (tagCompound?.getCompoundTag("display")?.getString("Name") == "§fWisp's Ice-Flavored Water I Splash Potion") { + if (name == "§fWisp's Ice-Flavored Water I Splash Potion") { return "WISP_POTION" } return NEUItems.getInternalName(this) |