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/anvil | |
| 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/anvil')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt index 9604cb05c..e03126fde 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/anvil/AnvilCombineHelper.kt @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.anvil 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.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils @@ -18,9 +19,8 @@ class AnvilCombineHelper { if (!SkyHanniMod.feature.inventory.anvilCombineHelper) return if (event.gui !is GuiChest) return - val guiChest = event.gui - val chest = guiChest.inventorySlots as ContainerChest - val chestName = chest.lowerChestInventory.displayName.unformattedText.trim() + val chest = event.gui.inventorySlots as ContainerChest + val chestName = chest.getInventoryName() if (chestName != "Anvil") return |
