diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-22 20:06:36 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-22 20:06:36 +0200 |
commit | eb68a59b4670d548fa4c0a493ad1d19029faeb5b (patch) | |
tree | 392483a857b584efbd8ea50fbfef9cb387e5e805 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 2e819d59253f91a5453d50cfaca7f998198a338b (diff) | |
download | skyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.tar.gz skyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.tar.bz2 skyhanni-eb68a59b4670d548fa4c0a493ad1d19029faeb5b.zip |
Use getItemInHand()
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt index b343b878a..4e49f4be2 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt @@ -64,4 +64,6 @@ object InventoryUtils { Minecraft.getMinecraft().thePlayer.inventory.armorInventory fun inStorage() = openInventoryName().let { it.contains("Storage") || it.contains("Ender Chest") || it.contains("Backpack") } + + fun getItemInHand(): ItemStack? = Minecraft.getMinecraft().thePlayer.heldItem }
\ No newline at end of file |