diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-07 05:39:53 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-07 05:39:53 +0100 |
commit | 2b78f5b11d480c632b4a5d5b4a4a8f659d8d3ea7 (patch) | |
tree | 569748d134c40fe6fdf941981a6ff847d353033d /src/main/java/at/hannibal2/skyhanni/features/bazaar | |
parent | cdfec7e6849c3a807812515eef26582933fbadd8 (diff) | |
download | skyhanni-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.kt | 3 |
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) { |