Merge pull request #5292 from Unmoon/orb-overlay-visibility
Don't show orb overlays when the orbs are hidden
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user