aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bazaar
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 05:39:53 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 05:39:53 +0100
commit2b78f5b11d480c632b4a5d5b4a4a8f659d8d3ea7 (patch)
tree569748d134c40fe6fdf941981a6ff847d353033d /src/main/java/at/hannibal2/skyhanni/features/bazaar
parentcdfec7e6849c3a807812515eef26582933fbadd8 (diff)
downloadskyhanni-2b78f5b11d480c632b4a5d5b4a4a8f659d8d3ea7.tar.gz
skyhanni-2b78f5b11d480c632b4a5d5b4a4a8f659d8d3ea7.tar.bz2
skyhanni-2b78f5b11d480c632b4a5d5b4a4a8f659d8d3ea7.zip
Using getInventoryName methods.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bazaar')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt
index 31bc1e978..fb4c3079b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt
@@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.bazaar
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.GuiContainerEvent
+import at.hannibal2.skyhanni.utils.InventoryUtils.getInventoryName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzColor
@@ -26,7 +27,7 @@ class BazaarOrderHelper {
if (event.gui !is GuiChest) return
val guiChest = event.gui
val chest = guiChest.inventorySlots as ContainerChest
- val inventoryName = chest.lowerChestInventory.displayName.unformattedText.trim()
+ val inventoryName = chest.getInventoryName()
if (!isBazaarOrderInventory(inventoryName)) return
out@ for (slot in chest.inventorySlots) {