aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/api
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 12:12:27 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 12:12:27 +0200
commit17ec026c19d1e203244217d599f72bd265d9aac8 (patch)
tree28c86ae9415e11ec316741ba752a7e807a10f74c /src/main/java/at/hannibal2/skyhanni/api
parent3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5 (diff)
downloadskyhanni-17ec026c19d1e203244217d599f72bd265d9aac8.tar.gz
skyhanni-17ec026c19d1e203244217d599f72bd265d9aac8.tar.bz2
skyhanni-17ec026c19d1e203244217d599f72bd265d9aac8.zip
Using NEUInternalName in slayer profit tracker
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/api')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
index 9e0cad6c0..8fd1b4cb5 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addOrPut
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUItems
+import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -29,7 +30,7 @@ class CollectionAPI {
val internalName = NEUItems.transHypixelNameToInternalName(hypixelId)
// MUSHROOM_COLLECTION,
- NEUItems.getItemStackOrNull(internalName)?.displayName ?: continue
+ internalName.getItemStackOrNull()?.displayName ?: continue
collectionValue[internalName] = counter
}