aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-24 17:28:33 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-24 17:28:33 +0100
commit2567f766c7ec5df02adcabfacd02974c83c9c72a (patch)
tree5d8c304da55940429b2361cec264220261ea3763 /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
parent0ef18631efce1a17b7397e3fcf835b11b9cfad9b (diff)
downloadskyhanni-2567f766c7ec5df02adcabfacd02974c83c9c72a.tar.gz
skyhanni-2567f766c7ec5df02adcabfacd02974c83c9c72a.tar.bz2
skyhanni-2567f766c7ec5df02adcabfacd02974c83c9c72a.zip
Used new neu method.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 714adcec4..62546ee81 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -4,8 +4,6 @@ import at.hannibal2.skyhanni.utils.StringUtils.matchRegex
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import com.google.gson.GsonBuilder
import com.google.gson.JsonObject
-import io.github.moulberry.notenoughupdates.NotEnoughUpdates
-import io.github.moulberry.notenoughupdates.util.ItemResolutionQuery
import net.minecraft.client.Minecraft
import net.minecraft.init.Items
import net.minecraft.item.ItemStack
@@ -115,12 +113,7 @@ object ItemUtils {
return false
}
- fun ItemStack.getInternalName(): String {
- return ItemResolutionQuery(NotEnoughUpdates.INSTANCE.manager)
- .withCurrentGuiContext()
- .withItemStack(this)
- .resolveInternalName() ?: ""
- }
+ fun ItemStack.getInternalName() = NEUItems.getInternalName(this)
fun ItemStack.getSkullTexture(): String? {
if (item != Items.skull) return null