diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 12:15:42 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 12:15:42 +0200 |
commit | c14fda47fd955f26a3d4b9d913b4580a5c5b016b (patch) | |
tree | a9eebd489af755d26bf13e7776c2653258ba30da | |
parent | 17ec026c19d1e203244217d599f72bd265d9aac8 (diff) | |
download | skyhanni-c14fda47fd955f26a3d4b9d913b4580a5c5b016b.tar.gz skyhanni-c14fda47fd955f26a3d4b9d913b4580a5c5b016b.tar.bz2 skyhanni-c14fda47fd955f26a3d4b9d913b4580a5c5b016b.zip |
code cleanup
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt index 146f94c90..dd316e63a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt @@ -7,6 +7,7 @@ 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.getItemStackOrNull import at.hannibal2.skyhanni.utils.NEUItems.getPrice import at.hannibal2.skyhanni.utils.StringUtils.removeColor import kotlinx.coroutines.launch @@ -57,7 +58,7 @@ class BazaarDataHolder { fun getData(internalName: NEUInternalName) = bazaarData[internalName] ?: createNewData(internalName) private fun createNewData(internalName: NEUInternalName): BazaarData? { - val stack = NEUItems.getItemStackOrNull(internalName.asString()) + val stack = internalName.getItemStackOrNull() if (stack == null) { LorenzUtils.debug("Bazaar data is null: '$internalName'") return null |