Merge pull request #632 from FrostyFridge/menuswap-puro

Fix #631 "Swap Puro-Puro Wheat not working"
This commit is contained in:
Ganom
2019-06-16 14:12:05 -04:00
committed by GitHub

View File

@@ -727,8 +727,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
if (event.getType() == WALK.getId())
{
MenuEntry menuEntry = entries[entries.length - 1];
MenuEntry[] menuEntries = client.getMenuEntries();
MenuEntry menuEntry = menuEntries[menuEntries.length - 1];
menuEntry.setType(MenuAction.WALK.getId() + MENU_ACTION_DEPRIORITIZE_OFFSET);
client.setMenuEntries(menuEntries);
}
else if (option.equalsIgnoreCase("examine"))
{