Fix menu swaps not working when left clicking items

This commit is contained in:
Lucas
2019-06-27 16:25:35 +02:00
parent 971549db3a
commit f2d633ae56
10 changed files with 477 additions and 416 deletions

View File

@@ -70,4 +70,17 @@ public class MenuEntry
* This is used for shift click
*/
private boolean forceLeftClick;
public static MenuEntry copy(MenuEntry src)
{
return new MenuEntry(
src.getOption(),
src.getTarget(),
src.getIdentifier(),
src.getType(),
src.getParam0(),
src.getParam1(),
src.isForceLeftClick()
);
}
}

View File

@@ -42,10 +42,15 @@ import net.runelite.api.MenuEntry;
@Data
public class MenuOptionClicked
{
public MenuOptionClicked(MenuEntry entry)
{
menuEntry = entry;
}
/**
* The actual MenuEntry object representing what was clicked
*/
private final MenuEntry menuEntry;
private MenuEntry menuEntry;
/**
* The option text added to the menu.