runelite-client: Don't add our menu options in spell casting/target mode
This commit is contained in:
@@ -117,6 +117,11 @@ public class MenuManager
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onMenuEntryAdded(MenuEntryAdded event)
|
public void onMenuEntryAdded(MenuEntryAdded event)
|
||||||
{
|
{
|
||||||
|
if (client.getSpellSelected())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int widgetId = event.getActionParam1();
|
int widgetId = event.getActionParam1();
|
||||||
Collection<WidgetMenuOption> options = managedMenuOptions.get(widgetId);
|
Collection<WidgetMenuOption> options = managedMenuOptions.get(widgetId);
|
||||||
|
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
|
|||||||
graphics.setColor(previous);
|
graphics.setColor(previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menuEntries == null && !client.isMenuOpen() && bounds.contains(mouse))
|
if (menuEntries == null && !client.isMenuOpen() && !client.getSpellSelected() && bounds.contains(mouse))
|
||||||
{
|
{
|
||||||
menuEntries = createRightClickMenuEntries(overlay);
|
menuEntries = createRightClickMenuEntries(overlay);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user