From 3bfb3531113e09f49defe2c0824bd95998345673 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Fri, 1 Mar 2024 13:07:59 +0100 Subject: Fix: BingoCardTips using correct slot (#1083) --- .../java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt index fd3312519..430f139c2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt @@ -13,8 +13,6 @@ import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.highlight import at.hannibal2.skyhanni.utils.StringUtils.matches import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern -import net.minecraft.client.Minecraft -import net.minecraft.client.gui.inventory.GuiContainer import net.minecraft.inventory.ContainerChest import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -41,8 +39,7 @@ class BingoCardTips { if (!isEnabled()) return if (!inventoryPattern.matches(InventoryUtils.openInventoryName())) return - val gui = Minecraft.getMinecraft().currentScreen as? GuiContainer ?: return - val slot = gui.slotUnderMouse + val slot = event.slot val goal = BingoAPI.bingoGoals[slot.slotNumber] ?: return val toolTip = event.toolTip -- cgit