aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-03-01 13:07:59 +0100
committerGitHub <noreply@github.com>2024-03-01 13:07:59 +0100
commit3bfb3531113e09f49defe2c0824bd95998345673 (patch)
treecf756571b9b7723a07d8608a736df8ab6c63de8a
parent31a93affd80cbf0dfa59c0570f280f4e85b5987b (diff)
downloadskyhanni-3bfb3531113e09f49defe2c0824bd95998345673.tar.gz
skyhanni-3bfb3531113e09f49defe2c0824bd95998345673.tar.bz2
skyhanni-3bfb3531113e09f49defe2c0824bd95998345673.zip
Fix: BingoCardTips using correct slot (#1083)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt5
1 files changed, 1 insertions, 4 deletions
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