diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-09 21:22:40 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-09 21:22:40 +0100 |
commit | 4131b3423182a1600e3ad903b18de1c5dd1b229c (patch) | |
tree | 2f02ac5e84af0ee9d839bde7858c322e74b10ee3 /src/main/java/at/hannibal2/skyhanni | |
parent | 25a8b8d33061c1dbf4bdd881e8ae436ead67d045 (diff) | |
download | skyhanni-4131b3423182a1600e3ad903b18de1c5dd1b229c.tar.gz skyhanni-4131b3423182a1600e3ad903b18de1c5dd1b229c.tar.bz2 skyhanni-4131b3423182a1600e3ad903b18de1c5dd1b229c.zip |
code cleanup
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 d7956c5c0..6e8ddda53 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/InventoryUtils.kt @@ -15,6 +15,7 @@ object InventoryUtils { var itemInHandId = NEUInternalName.NONE var recentItemsInHand = mutableMapOf<Long, NEUInternalName>() var latestItemInHand: ItemStack? = null + fun getItemsInOpenChest() = buildList<Slot> { val guiChest = Minecraft.getMinecraft().currentScreen as? GuiChest ?: return emptyList<Slot>() for (slot in guiChest.inventorySlots.inventorySlots) { |