aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
index acf2aa092..d4499ab12 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt
@@ -12,6 +12,8 @@ class NEUInternalName private constructor(private val internalName: String) {
val internalName = uppercase()
return map.getOrPut(internalName) { NEUInternalName(internalName) }
}
+
+ fun fromItemName(itemName: String) = NEUItems.getInternalNameFromItemName(itemName)
}
fun asString() = internalName