aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-10 10:18:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-10 10:18:21 +0200
commit522ccb4d14781ebbfe603d299986f85b95341107 (patch)
tree40dbec6c3e71ac8b9ac674a6368179e644b2c99d /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
parentd40e9d24671af36cf6a3fb830a0d0c37dade8b4a (diff)
downloadskyhanni-522ccb4d14781ebbfe603d299986f85b95341107.tar.gz
skyhanni-522ccb4d14781ebbfe603d299986f85b95341107.tar.bz2
skyhanni-522ccb4d14781ebbfe603d299986f85b95341107.zip
Using NEUInternalName in CollectionStep
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index ce44e3d64..b706bfb68 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -47,11 +47,11 @@ object NEUItems {
// TODO remove
fun getRawInternalName(itemName: String): String {
- return getInternalNameOrNull(itemName)?.asString() ?: throw Error("internal name is null for '$itemName'")
+ return getInternalNameFromItemName(itemName).asString()
}
- fun getInternalName(itemName: String): NEUInternalName {
- return getInternalNameOrNull(itemName) ?: throw Error("getInternalName is null for '$itemName'")
+ fun getInternalNameFromItemName(itemName: String): NEUInternalName {
+ return getInternalNameOrNull(itemName) ?: throw Error("Internal name is null for '$itemName'")
}
fun getInternalNameOrNullIgnoreCase(itemName: String): NEUInternalName? {