Fix push-through wheat not working

This commit is contained in:
FrostyFridge
2019-06-16 00:46:33 -07:00
parent 4d3b7b2510
commit 4e4a669563

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"))
{