aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 00:58:54 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 00:58:54 +0200
commitab0e2df6feae63caec66143a5328ad1c95adff82 (patch)
tree34b9ce910992abcb7159baeada7222b5868e8aec
parente068369777bc96cffef1eb382a94d8999787aa1b (diff)
downloadskyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.tar.gz
skyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.tar.bz2
skyhanni-ab0e2df6feae63caec66143a5328ad1c95adff82.zip
reverted name change in getInternalName
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt2
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)