Merge pull request #5292 from Unmoon/orb-overlay-visibility

Don't show orb overlays when the orbs are hidden
This commit is contained in:
Tomas Slusny
2018-09-04 17:11:47 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ class PrayerDoseOverlay extends Overlay
public Dimension render(Graphics2D graphics)
{
final Widget xpOrb = client.getWidget(WidgetInfo.MINIMAP_QUICK_PRAYER_ORB);
if (xpOrb == null)
if (xpOrb == null || xpOrb.isHidden())
{
return null;
}

View File

@@ -60,7 +60,7 @@ class RunEnergyOverlay extends Overlay
{
final Widget runOrb = client.getWidget(WidgetInfo.MINIMAP_TOGGLE_RUN_ORB);
if (runOrb == null)
if (runOrb == null || runOrb.isHidden())
{
return null;
}