Skip to content

Commit

Permalink
fix: Count both bank and potion storage for quest tab
Browse files Browse the repository at this point in the history
Items are removed first from the bank then potion storage, so worth having both shown in total quantity.
  • Loading branch information
Zoinkwiz committed Jan 20, 2025
1 parent fb1d4bd commit 9fcf2fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/com/questhelper/bank/banktab/QuestBankTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,7 @@ private int addPluginTabSection(Widget itemContainer, BankTabItems items, int to

private int count(ItemContainer bank, int itemId)
{
int count = bank.count(itemId);
if (count > 0)
{
return count;
}
return potionStorage.count(itemId);
return bank.count(itemId) + potionStorage.count(itemId);
}

int currentWidgetToUse = 0;
Expand Down

0 comments on commit 9fcf2fe

Please sign in to comment.