Always return null for RUNELITE_OVERLAY's

This commit is contained in:
Andrew Fulton
2019-02-11 17:52:33 -06:00
parent 32d87ecb83
commit 9997a03d76

View File

@@ -75,9 +75,8 @@ class MouseHighlightOverlay extends Overlay
String option = menuEntry.getOption(); String option = menuEntry.getOption();
int type = menuEntry.getType(); int type = menuEntry.getType();
if (!config.isRightClickTooltipEnabled() && isMenuActionRightClickOnly(type)) if (shouldNotRenderMenuAction(type))
{ {
// These are always right click only
return null; return null;
} }
@@ -137,9 +136,14 @@ class MouseHighlightOverlay extends Overlay
return null; return null;
} }
private boolean isMenuActionRightClickOnly(int type) private boolean shouldNotRenderMenuAction(int type)
{ {
return type == MenuAction.RUNELITE_OVERLAY.getId() return type == MenuAction.RUNELITE_OVERLAY.getId()
|| type == MenuAction.EXAMINE_ITEM_BANK_EQ.getId(); || (!config.isRightClickTooltipEnabled() && isMenuActionRightClickOnly(type));
}
private boolean isMenuActionRightClickOnly(int type)
{
return type == MenuAction.EXAMINE_ITEM_BANK_EQ.getId();
} }
} }