forked from RepoMirrors/kami-blue
Merge pull request #538 from S-B99/feature/pvpinfo#520
fix not searching if items were in offhand <3
This commit is contained in:
commit
412fc60112
|
@ -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