menuentryswapper: Fix Swaps for Coal Bag (#1270)

* Fix Swaps for Coal Bag

Swaps were not being cleared correctly, needed an extra removePriorityEntry to make it work as intended.

* fixt

ok it works now sorry ty

* BankComparableEntry

sorry :c
This commit is contained in:
GROUNDBOI
2019-08-05 17:41:37 -04:00
committed by Lucwousin
parent 28c521b14b
commit 8b3760dc87

View File

@@ -1322,7 +1322,8 @@ public class MenuEntrySwapperPlugin extends Plugin
if (this.swapCoalBag)
{
menuManager.addPriorityEntry("Empty", "Coal bag");
menuManager.addPriorityEntry("Fill", "Coal bag");
menuManager.addPriorityEntry(new BankComparableEntry("Empty", "Coal bag"));
}
if (this.swapBones)
@@ -1576,6 +1577,8 @@ public class MenuEntrySwapperPlugin extends Plugin
menuManager.removePriorityEntry("Teleport", "Mounted Hunter Cape");
menuManager.removePriorityEntry("Teleport", "Mounted Fishing Cape");
menuManager.removePriorityEntry("Spellbook", "Mounted Magic Cape");
menuManager.removePriorityEntry("Empty", "Coal bag");
menuManager.removePriorityEntry("Fill", "Coal bag");
menuManager.removePriorityEntry("Perks", "Mounted Max Cape");
menuManager.removePriorityEntry("Private");
menuManager.removePriorityEntry("Pick-lots");