Fix menu swaps not working when left clicking items
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user