menuentryswapper: finally fix "collect" in grand exchange window. (#1372)

This commit is contained in:
Ganom
2019-08-17 01:00:09 -04:00
committed by GitHub
parent 3ebed10e16
commit 456f062db7
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ public class BankComparableEntry extends AbstractComparableEntry
{
final int groupId = WidgetInfo.TO_GROUP(entry.getParam1());
if (groupId != WidgetID.BANK_GROUP_ID && groupId != WidgetID.BANK_INVENTORY_GROUP_ID)
if (groupId != WidgetID.BANK_GROUP_ID && groupId != WidgetID.BANK_INVENTORY_GROUP_ID && groupId != WidgetID.GRAND_EXCHANGE_GROUP_ID)
{
return false;
}

View File

@@ -1143,7 +1143,7 @@ public class MenuEntrySwapperPlugin extends Plugin
if (this.swapBankExchange)
{
menuManager.addPriorityEntry("Collect-notes").setPriority(1);
menuManager.addPriorityEntry(new BankComparableEntry("collect", "", false));
menuManager.addPriorityEntry("Bank");
menuManager.addPriorityEntry("Exchange");
}
@@ -1510,7 +1510,7 @@ public class MenuEntrySwapperPlugin extends Plugin
menuManager.removePriorityEntry("Teleport", "Explorer's ring 4");
menuManager.removePriorityEntry("Pickpocket");
menuManager.removePriorityEntry("Send-parcel", "Rionasta");
menuManager.removePriorityEntry("Collect-notes");
menuManager.removePriorityEntry(new BankComparableEntry("collect", "", false));
menuManager.removePriorityEntry("Bank");
menuManager.removePriorityEntry("Exchange");
menuManager.removePriorityEntry("Contract");