aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-10 15:57:27 +0200
committerGitHub <noreply@github.com>2024-09-10 15:57:27 +0200
commitce8c235c34aa7a7291377bd2b8c5b40e86d56bae (patch)
tree908f6b046a277473078bd53eb8cdf4107f5362a0 /src/main/java
parentd9b6bce816727327db4b69144b36827bfc1ad453 (diff)
downloadskyhanni-ce8c235c34aa7a7291377bd2b8c5b40e86d56bae.tar.gz
skyhanni-ce8c235c34aa7a7291377bd2b8c5b40e86d56bae.tar.bz2
skyhanni-ce8c235c34aa7a7291377bd2b8c5b40e86d56bae.zip
Fix: AH Price Comparison (#2483)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/AuctionHousePriceComparison.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/AuctionHousePriceComparison.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/AuctionHousePriceComparison.kt
index bef3b469e..081af4ea9 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/AuctionHousePriceComparison.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/AuctionHousePriceComparison.kt
@@ -16,6 +16,7 @@ import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.NumberUtil.formatLong
import at.hannibal2.skyhanni.utils.RegexUtils.matchMatcher
import at.hannibal2.skyhanni.utils.RenderUtils.highlight
+import net.minecraft.client.player.inventory.ContainerLocalMenu
import net.minecraft.item.ItemStack
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.awt.Color
@@ -109,6 +110,7 @@ object AuctionHousePriceComparison {
if (!isEnabled()) return
val diff = slotPriceMap[event.slot.slotIndex] ?: return
+ if (event.slot.inventory !is ContainerLocalMenu) return
event.toolTip.add("")
if (diff >= 0) {