aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-02-25 08:15:04 +0100
committerGitHub <noreply@github.com>2024-02-25 08:15:04 +0100
commit16d6a47c85be560517505499df1fff6df9582c18 (patch)
tree8d23232cac7627cf39595dc6c5006944fd0aaec8 /src/main/java/at/hannibal2/skyhanni/features
parent72fb024dc19d83e996a6aaf7cd0dc0183e3a0378 (diff)
downloadskyhanni-16d6a47c85be560517505499df1fff6df9582c18.tar.gz
skyhanni-16d6a47c85be560517505499df1fff6df9582c18.tar.bz2
skyhanni-16d6a47c85be560517505499df1fff6df9582c18.zip
Fixed internal name resolving. #1046
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
index 7ada19315..c3ef465f2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt
@@ -19,9 +19,9 @@ import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary
import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
+import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import com.google.gson.JsonArray
import com.google.gson.JsonObject
-import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import io.github.moulberry.notenoughupdates.recipes.CraftingRecipe
import net.minecraft.client.Minecraft
import net.minecraft.item.ItemStack
@@ -267,7 +267,7 @@ class MinionCraftHelper {
for ((_, b) in event.inventoryItems) {
val name = b.name ?: continue
if (!name.startsWith("§e")) continue
- val internalName = NEUItems.getInternalNameFromItemName("$name I")
+ val internalName = NEUInternalName.fromItemName("$name I")
.replace("MINION", "GENERATOR").replace(";", "_").replace("CAVE_SPIDER", "CAVESPIDER")
if (!tierOneMinionsDone.contains(internalName)) {
tierOneMinionsDone.add(internalName)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt
index 6e8f746f2..630d4fb83 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt
@@ -57,7 +57,7 @@ class CollectionTracker {
return
}
- val foundInternalName = NEUItems.getInternalNameOrNullIgnoreCase(rawName)
+ val foundInternalName = NEUItems.getInternalNameOrNull(rawName)
if (foundInternalName == null) {
ChatUtils.error("Item '$rawName' does not exist!")
return