diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 12:12:27 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 12:12:27 +0200 |
commit | 17ec026c19d1e203244217d599f72bd265d9aac8 (patch) | |
tree | 28c86ae9415e11ec316741ba752a7e807a10f74c /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | 3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5 (diff) | |
download | skyhanni-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/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt | 8 |
1 files changed, 5 insertions, 3 deletions
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 af01ca68b..741a1a089 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionTracker.kt @@ -10,6 +10,8 @@ import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.NEUInternalName import at.hannibal2.skyhanni.utils.NEUItems +import at.hannibal2.skyhanni.utils.NEUItems.getItemStack +import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.StringUtils.removeColor import net.minecraft.client.Minecraft @@ -62,7 +64,7 @@ class CollectionTracker { return } - val stack = NEUItems.getItemStackOrNull(foundInternalName) + val stack = foundInternalName.getItemStackOrNull() if (stack == null) { LorenzUtils.chat("§c[SkyHanni] Item '$rawName' does not exist!") return @@ -129,7 +131,7 @@ class CollectionTracker { display = Collections.singletonList(buildList { internalName?.let { - add(NEUItems.getItemStack(it)) + add(it.getItemStack()) } add("$itemName collection: §e$format $gainText") }) @@ -141,7 +143,7 @@ class CollectionTracker { fun handleTabComplete(command: String): List<String>? { if (command != "shtrackcollection") return null - return CollectionAPI.collectionValue.keys.mapNotNull { NEUItems.getItemStackOrNull(it) } + return CollectionAPI.collectionValue.keys.mapNotNull { it.getItemStackOrNull() } .map { it.displayName.removeColor().replace(" ", "_") } } } |