forked from RepoMirrors/kami-blue
fix not searching if items were in offhand <3
uwu big brain moment and thats on keeping it a 1liner
This commit is contained in:
parent
5ba32a8aab
commit
d44d165f14
|
@ -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<String> infoContents() {
|
||||
|
|
Loading…
Reference in New Issue