From d44d165f146595b93dd6a7f93e92f3b3ba899d99 Mon Sep 17 00:00:00 2001 From: pol-y-mer Date: Fri, 6 Mar 2020 13:37:17 -0500 Subject: [PATCH] fix not searching if items were in offhand <3 uwu big brain moment and thats on keeping it a 1liner --- .../me/zeroeightsix/kami/module/modules/gui/InfoOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/gui/InfoOverlay.java b/src/main/java/me/zeroeightsix/kami/module/modules/gui/InfoOverlay.java index 47035280..792bc1bc 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/gui/InfoOverlay.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/gui/InfoOverlay.java @@ -82,7 +82,7 @@ public class InfoOverlay extends Module { } public static int getItems(Item i) { - return mc.player.inventory.mainInventory.stream().filter(itemStack -> itemStack.getItem() == i).mapToInt(ItemStack::getCount).sum(); + return mc.player.inventory.mainInventory.stream().filter(itemStack -> itemStack.getItem() == i).mapToInt(ItemStack::getCount).sum() + mc.player.inventory.offHandInventory.stream().filter(itemStack -> itemStack.getItem() == i).mapToInt(ItemStack::getCount).sum(); } public ArrayList infoContents() {