diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-03-01 13:07:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 13:07:59 +0100 |
commit | 3bfb3531113e09f49defe2c0824bd95998345673 (patch) | |
tree | cf756571b9b7723a07d8608a736df8ab6c63de8a /src/main | |
parent | 31a93affd80cbf0dfa59c0570f280f4e85b5987b (diff) | |
download | skyhanni-3bfb3531113e09f49defe2c0824bd95998345673.tar.gz skyhanni-3bfb3531113e09f49defe2c0824bd95998345673.tar.bz2 skyhanni-3bfb3531113e09f49defe2c0824bd95998345673.zip |
Fix: BingoCardTips using correct slot (#1083)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt | 5 |
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 |