diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-04 12:10:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-04 12:10:58 +0200 |
commit | a9327d8a690a848d09031612e1aba84fb9f0fadd (patch) | |
tree | 26afdcf32af44c3724be84c2ede3b7fc6c7379be /src/main/java/at/hannibal2/skyhanni | |
parent | 827037fe460ae52a277fd97f1a04f5066e474a8c (diff) | |
download | skyhanni-a9327d8a690a848d09031612e1aba84fb9f0fadd.tar.gz skyhanni-a9327d8a690a848d09031612e1aba84fb9f0fadd.tar.bz2 skyhanni-a9327d8a690a848d09031612e1aba84fb9f0fadd.zip |
added todo
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt | 1 |
1 files changed, 1 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 f72be2a3a..5182c5c54 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt @@ -41,6 +41,7 @@ object InventoryUtils { fun getItemsInOwnInventoryWithNull() = Minecraft.getMinecraft().thePlayer?.inventory?.mainInventory + // TODO use this instead of getItemsInOwnInventory() for many cases, e.g. vermin tracker, diana spade, etc fun getItemsInHotbar() = getItemsInOwnInventoryWithNull()?.sliceArray(0..8)?.filterNotNull() ?: emptyList() |