aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bingo
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-22 20:06:36 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-22 20:06:36 +0200
commiteb68a59b4670d548fa4c0a493ad1d19029faeb5b (patch)
tree392483a857b584efbd8ea50fbfef9cb387e5e805 /src/main/java/at/hannibal2/skyhanni/features/bingo
parent2e819d59253f91a5453d50cfaca7f998198a338b (diff)
downloadskyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.tar.gz
skyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.tar.bz2
skyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.zip
Use getItemInHand()
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt
index f49bcf1ed..8d26638f4 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt
@@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.features.bingo.card.CommunityGoal
import at.hannibal2.skyhanni.features.bingo.card.PersonalGoal
+import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.name
@@ -123,8 +124,7 @@ class BingoCardDisplay {
if (!LorenzUtils.isBingoProfile) return
if (!config.enabled) return
- val stack = Minecraft.getMinecraft().thePlayer.heldItem //TODO into ItemUtils or InventoryUtils
- if (ItemUtils.isSkyBlockMenuItem(stack)) {
+ if (ItemUtils.isSkyBlockMenuItem(InventoryUtils.getItemInHand())) {
val sneaking = Minecraft.getMinecraft().thePlayer.isSneaking
if (lastSneak != sneaking) {
lastSneak = sneaking