Skip to content

Commit

Permalink
fix ah price comparison showing in own inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Sep 9, 2024
1 parent b9b0e9a commit ef3eda0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ef3eda0

Please sign in to comment.