aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/nextstep/CollectionStep.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/nextstep/CollectionStep.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/nextstep/CollectionStep.kt
index bfa081288..5cf45a49e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/nextstep/CollectionStep.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/nextstep/CollectionStep.kt
@@ -1,9 +1,9 @@
package at.hannibal2.skyhanni.features.bingo.nextstep
-import at.hannibal2.skyhanni.utils.NEUItems
+import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NumberUtil
class CollectionStep(collectionName: String, amountNeeded: Int) :
ProgressionStep(NumberUtil.format(amountNeeded) + " $collectionName Collection", amountNeeded.toLong()) {
- val internalName = NEUItems.getInternalName(collectionName)
+ val internalName by lazy { NEUInternalName.fromItemName(collectionName) }
} \ No newline at end of file
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? {